public abstract class GovernanceActionService extends ConnectorBase implements AuditLoggingComponent
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected String |
governanceServiceName |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
GovernanceActionService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleUnexpectedException(String methodName,
Throwable error)
Provide a common exception for unexpected errors.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
void |
setGovernanceServiceName(String governanceServiceName)
Set up the governance action service name.
|
void |
validateContext(GovernanceContext governanceContext)
Verify that the context has been set up in the subclass
|
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, start, toStringprotected String governanceServiceName
protected AuditLog auditLog
public void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic void setGovernanceServiceName(String governanceServiceName)
governanceServiceName - name of the serviceprotected void handleUnexpectedException(String methodName, Throwable error) throws ConnectorCheckedException
methodName - calling methoderror - caught exceptionGovernanceServiceException - wrapped exceptionConnectorCheckedExceptionpublic void validateContext(GovernanceContext governanceContext) throws ConnectorCheckedException
governanceContext - context from the subclassConnectorCheckedException - error to say that the connector (governance action service) is not able to proceed because
it has not been set up correctly.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.