Class GovernanceActionService
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.Connector
-
- org.odpi.openmetadata.frameworks.connectors.ConnectorBase
-
- org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionServiceConnector
-
- org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionService
-
- All Implemented Interfaces:
AuditLoggingComponent,VirtualConnectorExtension
public abstract class GovernanceActionService extends GovernanceActionServiceConnector
GovernanceActionService describes the base class for a specific type of connector that is responsible for preforming specific governance actions on demand. There are five types of governance action service:- WatchdogGovernanceActionService - monitors for changes to the metadata elements and initiates other governance actions depending on the nature of the change.
- VerificationGovernanceActionService - tests values in the metadata elements to detect errors or to classify the status of the metadata elements.
- TriageGovernanceActionService - manages the choices on how to resolve a situation, often involving a human decision maker.
- RemediationGovernanceActionService - maintains the metadata elements.
- ProvisioningGovernanceActionService - provisions resources in the digital landscape and maintains lineage.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected GovernanceActionContextgovernanceContext-
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionServiceConnector
auditLog, embeddedConnectors, governanceServiceName
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
-
-
Constructor Summary
Constructors Constructor Description GovernanceActionService()
-
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.voidsetGovernanceContext(GovernanceActionContext governanceContext)Set up details of the the governance action request and access to the metadata store.voidstart()Indicates that the governance action service is completely configured and can begin processing.-
Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionServiceConnector
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
-
-
-
-
Field Detail
-
governanceContext
protected GovernanceActionContext governanceContext
-
-
Method Detail
-
setGovernanceContext
public void setGovernanceContext(GovernanceActionContext governanceContext)
Set up details of the the governance action request and access to the metadata store. This method is called before start and should not be null- Specified by:
setGovernanceContextin classGovernanceActionServiceConnector- Parameters:
governanceContext- specialist context for this type of governance action.
-
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() in your version.- Overrides:
startin classConnectorBase- 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 classConnectorBase- Throws:
ConnectorCheckedException- there is a problem within the governance action service.
-
-