public class GenericWatchdogListener extends WatchdogGovernanceListener
GenericWatchdogListener implements the watchdog listener interface for the GenericWatchdogGovernanceActionConnectors.
  • Constructor Details

    • GenericWatchdogListener

      public GenericWatchdogListener(GenericWatchdogGovernanceActionConnector connector)
      Construct the listener that is registered with the GovernanceContext.
      connector - connector to delegate all events to
  • Method Details

    • 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 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 class WatchdogGovernanceListener
      event - event containing details of a change to an open metadata element.
      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.