Class WaitForStewardGovernanceActionConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector
org.odpi.openmetadata.adapters.connectors.governanceactions.stewardship.WaitForStewardGovernanceActionConnector
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension,WatchdogActionService
WaitForStewardGovernanceActionConnector is a Watchdog Action Service that waits for stewards to finish the
to dos supplied as its action targets. It listens for updates to, and deletions of, these to dos and completes
once every one of them has finished. The guard it produces shows whether they were all completed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection -
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector
connector, embeddedConnectors, objectMapper, propertyHelper, watchdogActionServiceName, watchdogContextFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
auditLog, connectionBean, connectorInstanceId, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called each time a to do is updated or deleted.voidstart()Indicates that the watchdog action service is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector
disconnect, getConnectorComponentDescription, getJSONProperties, handleUnexpectedException, setAuditLog, setWatchdogActionServiceName, setWatchdogContextMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayValue, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingElement, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
WaitForStewardGovernanceActionConnector
public WaitForStewardGovernanceActionConnector()Default constructor
-
-
Method Details
-
start
Indicates that the watchdog action service is completely configured and can begin processing. The listener is registered before the current status of each to do is checked, so that a to do that finishes while the service is starting is not missed. This is a standard method from the Open Connector Framework (OCF) so be sure to call super.start() at the start of your overriding version.- Overrides:
startin classWatchdogActionServiceConnector- Throws:
ConnectorCheckedException- a problem within the watchdog action service.UserNotAuthorizedException- the connector was disconnected before/during start
-
processEvent
This method is called each time a to do is updated or deleted. Events for to dos that this service is not waiting for, or that arrive after it has completed, are ignored.- Specified by:
processEventin classWatchdogActionServiceConnector- Parameters:
event- event containing details of a change to an open metadata element.
-