Interface ConnectorStatusRepository
-
public interface ConnectorStatusRepository
Repository for basic storage of the connector and connector configuration statuses.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECTOR_STATUS_KEY
Key of status record.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description FullConnectorStatus
fetchConnectorStatus()
Fetches the connector and connector configuration statuses.static ConnectorStatusRepository
getInstance(KeyValueTable table)
Returns a new instance of the default repository implementation.void
updateConnectorStatus(FullConnectorStatus fullConnectorStatus)
Updates the connector and connector configuration statuses.
-
-
-
Field Detail
-
CONNECTOR_STATUS_KEY
static final String CONNECTOR_STATUS_KEY
Key of status record.- See Also:
- Constant Field Values
-
-
Method Detail
-
fetchConnectorStatus
FullConnectorStatus fetchConnectorStatus()
Fetches the connector and connector configuration statuses.- Returns:
- connector and connector configuration statuses
-
updateConnectorStatus
void updateConnectorStatus(FullConnectorStatus fullConnectorStatus)
Updates the connector and connector configuration statuses.- Parameters:
fullConnectorStatus
- new statuses
-
getInstance
static ConnectorStatusRepository getInstance(KeyValueTable table)
Returns a new instance of the default repository implementation.Default implementation of the repository uses:
- a default implementation of
KeyValueStateRepository
CONNECTOR_STATUS_KEY
as the status record key
- Parameters:
table
- table in which the status will be stored- Returns:
- a new repository instance
- a default implementation of
-
-