public class GovernanceActionEngineHandler extends GovernanceEngineHandler
auditLog, engineUserId, governanceEngineGUID, governanceEngineName, governanceEngineProperties, maxPageSize, serverClient, serverName, serverUserId| Constructor and Description |
|---|
GovernanceActionEngineHandler(EngineConfig engineConfig,
String localServerName,
String partnerServerName,
String partnerURLRoot,
String serverUserId,
GovernanceEngineConfigurationClient configurationClient,
GovernanceEngineClient serverClient,
GovernanceEngineClient governanceEngineClient,
AuditLog auditLog,
int maxPageSize)
Create a client-side object for calling a governance action engine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
publishWatchdogEvent(WatchdogGovernanceEvent watchdogGovernanceEvent)
Pass on the watchdog event to any governance service that supports them.
|
GovernanceServiceHandler |
runGovernanceService(String governanceActionGUID,
String requestType,
Map<String,String> requestParameters,
List<RequestSourceElement> requestSourceElements,
List<ActionTargetElement> actionTargetElements)
Run an instance of a governance action service in its own thread and return the handler (for disconnect processing).
|
executeGovernanceAction, getGovernanceEngineName, getServiceCache, getSummary, refreshConfig, refreshServiceConfig, terminate, validateGovernanceEngineInitializedpublic GovernanceActionEngineHandler(EngineConfig engineConfig, String localServerName, String partnerServerName, String partnerURLRoot, String serverUserId, GovernanceEngineConfigurationClient configurationClient, GovernanceEngineClient serverClient, GovernanceEngineClient governanceEngineClient, AuditLog auditLog, int maxPageSize)
engineConfig - the unique identifier of the governance action engine.localServerName - the name of the engine host server where the governance action engine is runningserverUserId - user id for the server to useconfigurationClient - client to retrieve the configurationserverClient - client to control the execution of governance action requestsgovernanceEngineClient - REST client for calls made by the governance action servicesauditLog - logging destinationmaxPageSize - maximum number of results that can be returned in a single requestpublic void publishWatchdogEvent(WatchdogGovernanceEvent watchdogGovernanceEvent) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishWatchdogEvent in class GovernanceEngineHandlerwatchdogGovernanceEvent - element describing the changing metadata data.InvalidParameterException - Vital fields of the governance action are not filled outUserNotAuthorizedException - the governance service is not permitted to execute the governance actionPropertyServerException - there is a problem communicating with the open metadata storespublic GovernanceServiceHandler runGovernanceService(String governanceActionGUID, String requestType, Map<String,String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements) throws InvalidParameterException, PropertyServerException
runGovernanceService in class GovernanceEngineHandlergovernanceActionGUID - unique identifier of the asset to analyserequestType - unique identifier of the asset that the annotations should be attached torequestParameters - name-value properties to control the governance action servicerequestSourceElements - metadata elements associated with the request to the governance action serviceactionTargetElements - metadata elements that need to be worked on by the governance action serviceInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there was a problem detected by the governance action engine.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.