Class SurveyActionEngineHandler
java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.admin.GovernanceEngineHandler
org.odpi.openmetadata.engineservices.surveyaction.handlers.SurveyActionEngineHandler
The SurveyActionEngineHandler is responsible for running survey action services on demand. It is initialized
with the configuration for the survey action services it supports along with the clients to the
asset properties store and annotations store.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.governanceservers.enginehostservices.admin.GovernanceEngineHandler
auditLog, configurationClient, engineActionClient, engineUserId, governanceEngineGUID, governanceEngineName, governanceEngineProperties, maxPageSize, serverName, serverUserId
-
Constructor Summary
ConstructorDescriptionSurveyActionEngineHandler
(EngineConfig engineConfig, String serverName, String serverUserId, GovernanceConfigurationClient configurationClient, GovernanceContextClient engineActionClient, ConnectedAssetClient connectedAssetClient, FileSystemAssetOwner fileSystemAssetOwner, CSVFileAssetOwner csvFileAssetOwner, OpenMetadataClient openMetadataClient, AuditLog auditLog, int maxPageSize) Create a client-side object for calling a survey action engine. -
Method Summary
Modifier and TypeMethodDescriptionvoid
runGovernanceService
(String engineActionGUID, String governanceRequestType, String requesterUserId, Date requestedStartDate, Map<String, String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements) Run an instance of a survey action service in its own thread and return the handler (for disconnect processing).Methods inherited from class org.odpi.openmetadata.governanceservers.enginehostservices.admin.GovernanceEngineHandler
executeEngineAction, getGovernanceEngineElement, getGovernanceEngineName, getServiceCache, getSummary, refreshConfig, refreshServiceConfig, restartGovernanceService, restartServices, startServiceExecutionThread, terminate, validateGovernanceEngineInitialized
-
Constructor Details
-
SurveyActionEngineHandler
public SurveyActionEngineHandler(EngineConfig engineConfig, String serverName, String serverUserId, GovernanceConfigurationClient configurationClient, GovernanceContextClient engineActionClient, ConnectedAssetClient connectedAssetClient, FileSystemAssetOwner fileSystemAssetOwner, CSVFileAssetOwner csvFileAssetOwner, OpenMetadataClient openMetadataClient, AuditLog auditLog, int maxPageSize) Create a client-side object for calling a survey action engine.- Parameters:
engineConfig
- the unique identifier of the survey action engine.serverName
- the name of the engine host server where the survey action engine is runningserverUserId
- user id for the server to useconfigurationClient
- client to retrieve the configurationengineActionClient
- client used by the engine host services to control the execution of governance action requestsconnectedAssetClient
- REST client from the OCF that is linked to the Asset Owner OMASfileSystemAssetOwner
- REST client that is linked to the Asset Owner OMAScsvFileAssetOwner
- REST client that is linked to the Asset Owner OMASopenMetadataClient
- REST Client from the GAF that is linked to the Asset Owner OMASauditLog
- logging destinationmaxPageSize
- maximum number of results that can be returned in a single request
-
-
Method Details
-
runGovernanceService
public void runGovernanceService(String engineActionGUID, String governanceRequestType, String requesterUserId, Date requestedStartDate, Map<String, String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionRun an instance of a survey action service in its own thread and return the handler (for disconnect processing).- Specified by:
runGovernanceService
in classGovernanceEngineHandler
- Parameters:
engineActionGUID
- unique identifier of engine action to activategovernanceRequestType
- governance request type to use when calling the governance enginerequesterUserId
- original user requesting this governance servicerequestedStartDate
- date/time to start the governance servicerequestParameters
- name-value properties to control the governance servicerequestSourceElements
- metadata elements associated with the request to the governance serviceactionTargetElements
- metadata elements that need to be worked on by the governance service- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the governance engine.
-