Class GenericWatchdogListener
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.WatchdogGovernanceListener
org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogListener
GenericWatchdogListener implements the watchdog listener interface for the GenericWatchdogGovernanceActionConnectors.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct the listener that is registered with the GovernanceContext. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called each time a requested event is received from the open metadata repositories.
-
Constructor Details
-
GenericWatchdogListener
Construct the listener that is registered with the GovernanceContext.- Parameters:
connector
- connector to delegate all events to
-
-
Method Details
-
processEvent
This method is called each time a requested event is received from the open metadata repositories. It is called for events received after this listener is registered until the watchdog governance service sets its status in the context as ACTIONED, INVALID, IGNORED or FAILED, or it is stopped by an administrator shutting down the hosting server or this service explicitly.- Specified by:
processEvent
in classWatchdogGovernanceListener
- Parameters:
event
- event containing details of a change to an open metadata element.- Throws:
GovernanceServiceException
- reports that the event can not be processed (this is logged but no other action is taken). The listener will continue to be called until the watchdog governance action service declares it is complete or administrator action shuts down the service.
-