Interface ConnectorStatusService
-
- All Known Implementing Classes:
DefaultConnectorStatusService
public interface ConnectorStatusService
Service for basic management of the connector and connector configuration statuses.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description FullConnectorStatus
getConnectorStatus()
Returns the connector and connector configuration statuses.static ConnectorStatusService
getInstance(Session session)
Returns a new instance of the default service implementation.void
updateConnectorStatus(FullConnectorStatus connectorStatus)
Updates 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 tableVariantMapperException
- 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:
- a default implementation of
KeyValueStateRepository
, created for theSTATE.APP_STATE
table. CONNECTOR_STATUS_KEY
as the status record key
- Parameters:
session
- Snowpark session object- Returns:
- a new service instance
- a default implementation of
-
-