Class VerificationGovernanceActionService
- 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.VerificationGovernanceActionService
-
- All Implemented Interfaces:
AuditLoggingComponent
public abstract class VerificationGovernanceActionService extends GovernanceActionService
The verification governance action service is responsible for testing the values in the metadata elements and relationships and setting up guards to guide the next step of processing. To create your own verification governance action service, create a new class that extends this class along with another class that extends the GovernanceActionServiceProviderBase class to act as its connector provider. Add a start() method that begins by calling super.start() and then includes the logic to retrieve the metadata elements and make an assessment. The requestSourceElements describe the situation that the governance action service is assessing and the actionTargetElements describe the elements that should/could be acted upon. Once the assessment is complete, your start() method should call governanceContext.recordCompletionStatus() and then return. The recordCompletionStatus() call will include guards that are used to determine the next step.
-
-
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 VerificationGovernanceContextgovernanceContext-
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionService
auditLog, governanceServiceName
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
-
-
Constructor Summary
Constructors Constructor Description VerificationGovernanceActionService()
-
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(VerificationGovernanceContext 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.GovernanceActionService
handleUnexpectedException, setAuditLog, setGovernanceServiceName, validateContext
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toString
-
-
-
-
Field Detail
-
governanceContext
protected VerificationGovernanceContext governanceContext
-
-
Method Detail
-
setGovernanceContext
public void setGovernanceContext(VerificationGovernanceContext 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- 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.
-
-