Class WaitForStewardGovernanceActionConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, WatchdogActionService

public class WaitForStewardGovernanceActionConnector extends WatchdogActionServiceConnector
WaitForStewardGovernanceActionConnector is a Watchdog Action Service that waits for stewards to finish the to dos supplied as its action targets. It listens for updates to, and deletions of, these to dos and completes once every one of them has finished. The guard it produces shows whether they were all completed.
  • Constructor Details

    • WaitForStewardGovernanceActionConnector

      public WaitForStewardGovernanceActionConnector()
      Default constructor
  • Method Details

    • start

      Indicates that the watchdog action service is completely configured and can begin processing. The listener is registered before the current status of each to do is checked, so that a to do that finishes while the service is starting is not missed. This is a standard method from the Open Connector Framework (OCF) so be sure to call super.start() at the start of your overriding version.
      Overrides:
      start in class WatchdogActionServiceConnector
      Throws:
      ConnectorCheckedException - a problem within the watchdog action service.
      UserNotAuthorizedException - the connector was disconnected before/during start
    • processEvent

      public void processEvent(OpenMetadataOutTopicEvent event)
      This method is called each time a to do is updated or deleted. Events for to dos that this service is not waiting for, or that arrive after it has completed, are ignored.
      Specified by:
      processEvent in class WatchdogActionServiceConnector
      Parameters:
      event - event containing details of a change to an open metadata element.