Class GovernanceListenerManager
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.client.GovernanceListenerManager
GovernanceListenerManager manages the watchdog listeners through a single registration to the Governance Engine OMAS's
out topic. This approach is used to enable the rapid changing list of watchdog listeners and their listening specification
without pushing that churn to the event bus.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceListenerManager(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String governanceEngineName) Create a governance listener manager for watchdog listeners. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessEvent(org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent event) Process a watchdog event that was published by the Governance Engine OMAS.voidremoveListener(String connectorId) Remove the listener for a specific governance service because this service has been disconnected.
-
Constructor Details
-
GovernanceListenerManager
public GovernanceListenerManager(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String governanceEngineName) Create a governance listener manager for watchdog listeners.- Parameters:
auditLog- audit log for the listener managergovernanceEngineName- engine name for messages
-
-
Method Details
-
processEvent
public void processEvent(org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent event) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Process a watchdog event that was published by the Governance Engine OMAS.- Parameters:
event- event object - call getEventType to find out what type of event.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the event is incomplete
-
removeListener
Remove the listener for a specific governance service because this service has been disconnected.- Parameters:
connectorId- unique id of governance service instance
-