Class GenericElementWatchdogGovernanceActionConnector
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.Connector
-
- org.odpi.openmetadata.frameworks.connectors.ConnectorBase
-
- org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionService
-
- org.odpi.openmetadata.frameworks.governanceaction.WatchdogGovernanceActionService
-
- org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogGovernanceActionConnector
-
- org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericElementWatchdogGovernanceActionConnector
-
- All Implemented Interfaces:
AuditLoggingComponent,VirtualConnectorExtension
public class GenericElementWatchdogGovernanceActionConnector extends GenericWatchdogGovernanceActionConnector
MonitorForNewAssetGovernanceActionConnector is a Watchdog Governance Action Service that listens for new or refreshed Assets and kicks off a governance action process to validate that this Asset is correctly set up. It is designed to run continuously and so does not set up completion status or guards. This means its Governance Action entity is never completed and this service is restarted each time the hosting engine is restarted.
-
-
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.governanceaction.WatchdogGovernanceActionService
governanceContext
-
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionService
auditLog, embeddedConnectors, governanceServiceName
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
-
-
Constructor Summary
Constructors Constructor Description GenericElementWatchdogGovernanceActionConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisconnect()Disconnect is called either because this governance action service called governanceContext.recordCompletionStatus() or the administer requested this governance action service stop running or the hosting server is shutting down.voidstart()Indicates that the governance action service is completely configured and can begin processing.-
Methods inherited from class org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogGovernanceActionConnector
diffProperties, initiateProcess
-
Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.WatchdogGovernanceActionService
setGovernanceContext
-
Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionService
getConnectorComponentDescription, handleUnexpectedException, initializeEmbeddedConnectors, setAuditLog, setGovernanceServiceName, validateContext
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toString
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
-
-
-
Method Detail
-
start
public void start() throws ConnectorCheckedExceptionIndicates that the governance action service is completely configured and can begin processing. 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 classWatchdogGovernanceActionService- Throws:
ConnectorCheckedException- there is a problem within the governance action service.
-
disconnect
public void disconnect() throws ConnectorCheckedExceptionDisconnect is called either because this governance action service called governanceContext.recordCompletionStatus() or the administer requested this governance action service stop running or the hosting server is shutting down. If disconnect completes before the governance action service records its completion status then the governance action service is restarted either at the administrator's request or the next time the server starts. If you do not want this governance action service restarted, be sure to record the completion status in disconnect(). The disconnect() method is a standard method from the Open Connector Framework (OCF). If you need to override this method be sure to call super.disconnect() in your version.- Overrides:
disconnectin classGenericWatchdogGovernanceActionConnector- Throws:
ConnectorCheckedException- there is a problem within the governance action service.
-
-