Interface ConnectorStatusService

  • All Known Implementing Classes:
    DefaultConnectorStatusService

    public interface ConnectorStatusService
    Service for basic management of the connector and connector configuration statuses.
    • Method Detail

      • getConnectorStatus

        FullConnectorStatus getConnectorStatus()
        Returns the connector and connector configuration statuses.
        Returns:
        connector and connector configuration statuses
        Throws:
        KeyNotFoundException - if the status record is not found in the state table
        VariantMapperException - if the status record value is not a valid status Variant
      • updateConnectorStatus

        void updateConnectorStatus​(FullConnectorStatus connectorStatus)
        Updates the connector and connector configuration statuses.
        Parameters:
        connectorStatus - new statuses
      • getInstance

        static ConnectorStatusService getInstance​(Session session)
        Returns a new instance of the default service implementation.

        Default implementation of the service uses:

        Parameters:
        session - Snowpark session object
        Returns:
        a new service instance