Class ProvisioningGovernanceActionService
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.ProvisioningGovernanceActionService
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,GovernanceActionService
The provisioning governance action service is responsible for provisioning real-world resources in the digital
landscape and maintaining the Assets and lineage associated with them.
To create your own provisioning 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 provisioning logic.
You may also wish to add the metadata for the new assets, a process to represent this governance action service's
activity that are linked with the source asset(s) using LineageMapping relationships:
sourceAsset -LineageMapping- provisioningProcess -LineageMapping- targetAsset
This is done using the methods available through the governanceContext which is set up just before your start() method is called.
Once the provisioning work is complete, and any lineage metadata is created, your start() method should call
governanceContext.recordCompletionStatus() and then return.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnect 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 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, initializeEmbeddedConnectors, setAuditLog, setGovernanceServiceName, validateContextMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeSecretsStoreConnector, isActive, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
ProvisioningGovernanceActionService
public ProvisioningGovernanceActionService()
-
-
Method Details
-
setGovernanceContext
Set up details of 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 org.odpi.openmetadata.frameworks.connectors.ffdc.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 classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the governance action service.
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 classGovernanceActionServiceConnector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the governance action service.
-