Class GovernanceActionServiceConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionServiceConnector
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,GovernanceActionService
- Direct Known Subclasses:
GeneralGovernanceActionService,ProvisioningGovernanceActionService,RemediationGovernanceActionService,TriageGovernanceActionService,VerificationGovernanceActionService,WatchdogGovernanceActionService
public abstract class GovernanceActionServiceConnector
extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase
implements GovernanceActionService, org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent, org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension
GovernanceActionServiceConnector describes the base class for a specific type of connector that is responsible for preforming
specific governance actions on demand. There are six 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.
- GeneralGovernanceActionService - combines all of the capability of the specialist services above.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFree up any resources held since the connector is no longer needed.org.odpi.openmetadata.frameworks.auditlog.ComponentDescriptionReturn the component description that is used by this connector in the audit log.voidinitializeEmbeddedConnectors(List<org.odpi.openmetadata.frameworks.connectors.Connector> embeddedConnectors) Set up the list of connectors that this virtual connector will use to support its interface.voidsetAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.abstract voidsetGovernanceContext(GovernanceActionContext governanceContext) Set up details of the governance action request and access to the metadata store.voidsetGovernanceServiceName(String governanceServiceName) Set up the governance action service name.voidvalidateContext(GovernanceContext governanceContext) Verify that the context has been set up in the subclassMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeSecretsStoreConnector, isActive, start, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
GovernanceActionServiceConnector
public GovernanceActionServiceConnector()
-
-
Method Details
-
setAuditLog
public void setAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.- Specified by:
setAuditLogin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Parameters:
auditLog- audit log object
-
getConnectorComponentDescription
public org.odpi.openmetadata.frameworks.auditlog.ComponentDescription getConnectorComponentDescription()Return the component description that is used by this connector in the audit log.- Specified by:
getConnectorComponentDescriptionin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Returns:
- id, name, description, wiki page URL.
-
initializeEmbeddedConnectors
public void initializeEmbeddedConnectors(List<org.odpi.openmetadata.frameworks.connectors.Connector> embeddedConnectors) Set up the list of connectors that this virtual connector will use to support its interface. The connectors are initialized waiting to start. When start() is called on the virtual connector, it needs to pass start() to each of the embedded connectors. Similarly for disconnect().- Specified by:
initializeEmbeddedConnectorsin interfaceorg.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension- Parameters:
embeddedConnectors- list of connectors
-
setGovernanceServiceName
Set up the governance action service name. This is used in error messages.- Parameters:
governanceServiceName- name of the service
-
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- Parameters:
governanceContext- specialist context for this type of governance action.
-
validateContext
public void validateContext(GovernanceContext governanceContext) throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException Verify that the context has been set up in the subclass- Parameters:
governanceContext- context from the subclass- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- error to say that the connector (governance action service) is not able to proceed because it has not been set up correctly.
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionFree up any resources held since the connector is no longer needed.- Overrides:
disconnectin classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-