Class GenericWatchdogListener
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.governanceaction.WatchdogGovernanceListener
-
- org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogListener
-
public class GenericWatchdogListener extends WatchdogGovernanceListener
GenericWatchdogListener implements the watchdog listener interface for the GenericWatchdogGovernanceActionConnectors.
-
-
Constructor Summary
Constructors Constructor Description GenericWatchdogListener(GenericWatchdogGovernanceActionConnector connector)Construct the listener that is registered with the GovernanceContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessEvent(WatchdogGovernanceEvent event)This method is called each time a requested event is received from the open metadata repositories.
-
-
-
Constructor Detail
-
GenericWatchdogListener
public GenericWatchdogListener(GenericWatchdogGovernanceActionConnector connector)
Construct the listener that is registered with the GovernanceContext.- Parameters:
connector- connector to delegate all events to
-
-
Method Detail
-
processEvent
public void processEvent(WatchdogGovernanceEvent event) throws GovernanceServiceException
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 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:
processEventin 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.
-
-