public class WatchdogGovernanceContext extends GovernanceContext
| Constructor and Description |
|---|
WatchdogGovernanceContext(String userId,
String governanceActionGUID,
String requestType,
Map<String,String> requestParameters,
List<RequestSourceElement> requestSourceElements,
List<ActionTargetElement> actionTargetElements,
OpenMetadataClient openMetadataStore)
Constructor sets up the key parameters for processing the request to the governance action service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createIncidentReport(String qualifiedName,
int domainIdentifier,
String background,
List<IncidentImpactedElement> impactedResources,
List<IncidentDependency> previousIncidents,
Map<String,Integer> incidentClassifiers,
Map<String,String> additionalProperties)
Create an incident report to capture the situation detected by this governance action service.
|
String |
initiateGovernanceAction(String qualifiedName,
int domainIdentifier,
String displayName,
String description,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
Date startTime,
String governanceEngineName,
String requestType,
Map<String,String> requestParameters)
Create a governance action in the metadata store which will trigger the governance action service
associated with the supplied request type.
|
String |
initiateGovernanceActionProcess(String processQualifiedName,
Map<String,String> requestParameters,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
Date startTime)
Using the named governance action process as a template, initiate a chain of governance actions.
|
void |
registerListener(WatchdogGovernanceListener listener,
List<WatchdogEventType> interestingEventTypes,
List<String> interestingMetadataTypes,
String specificInstance)
Register a listener to receive events about changes to metadata elements in the open metadata store.
|
String |
toString()
Standard toString method.
|
getActionTargetElements, getCompletionStatus, getOpenMetadataStore, getRequestParameters, getRequestSourceElements, getRequestType, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, updateActionTargetStatuspublic WatchdogGovernanceContext(String userId, String governanceActionGUID, String requestType, Map<String,String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements, OpenMetadataClient openMetadataStore)
userId - calling usergovernanceActionGUID - unique identifier of the governance action that triggered this governance servicerequestType - 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 serviceopenMetadataStore - client to the metadata store for use by the governance action servicepublic void registerListener(WatchdogGovernanceListener listener, List<WatchdogEventType> interestingEventTypes, List<String> interestingMetadataTypes, String specificInstance) throws InvalidParameterException
listener - listener object to receive eventsinterestingEventTypes - types of events that should be passed to the listenerinterestingMetadataTypes - types of elements that are the subject of the interesting event typesspecificInstance - unique identifier of a specific instance (metadata element or relationship) to watch forInvalidParameterException - one or more of the type names are unrecognizedpublic String initiateGovernanceAction(String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, String governanceEngineName, String requestType, Map<String,String> requestParameters) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
qualifiedName - unique identifier to give this governance actiondomainIdentifier - governance domain associated with this action (0=ALL)displayName - display name for this actiondescription - description for this actionrequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - map of action target names to GUIDs for the resulting governance action servicestartTime - future start time or null for "as soon as possible".governanceEngineName - name of the governance engine to run the requestrequestType - request type to identify the governance action service to runrequestParameters - properties to pass to the governance action serviceInvalidParameterException - null qualified nameUserNotAuthorizedException - this governance action service is not authorized to create a governance actionPropertyServerException - there is a problem with the metadata storepublic String initiateGovernanceActionProcess(String processQualifiedName, Map<String,String> requestParameters, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
processQualifiedName - unique name of the governance action process to userequestParameters - request parameters to pass to the governance actions called in the governance action processrequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - map of action target names to GUIDs for the resulting governance action servicestartTime - future start time or null for "as soon as possible".InvalidParameterException - null or unrecognized qualified name of the processUserNotAuthorizedException - this governance action service is not authorized to create a governance action processPropertyServerException - there is a problem with the metadata storepublic String createIncidentReport(String qualifiedName, int domainIdentifier, String background, List<IncidentImpactedElement> impactedResources, List<IncidentDependency> previousIncidents, Map<String,Integer> incidentClassifiers, Map<String,String> additionalProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
qualifiedName - unique identifier to give this new incident reportdomainIdentifier - governance domain associated with this action (0=ALL)background - description of the situationimpactedResources - details of the resources impacted by this situationpreviousIncidents - links to previous incident reports covering this situationincidentClassifiers - initial classifiers for the incident reportadditionalProperties - additional arbitrary properties for the incident reportsInvalidParameterException - null or non-unique qualified name for the incident reportUserNotAuthorizedException - this governance action service is not authorized to create a incident reportPropertyServerException - there is a problem with the metadata storepublic String toString()
toString in class GovernanceContextCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.