All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, WatchdogActionService

public class KarmaPointAwardsService extends WatchdogActionServiceConnector
KarmaPointAwardsService fills in the contribution record for an actor profile. The aim is to perform this update as cheaply as possible and so some values are cached. Any strangeness in the metadata elements is ignored in the interest of speed. The updates are synchronized to reduce the chance of updating the same contribution record simultaneously in multiple threads.
  • Constructor Details

    • KarmaPointAwardsService

      public KarmaPointAwardsService()
  • Method Details

    • start

      Indicates that the watchdog action service is completely configured and can begin processing. This is where the function of the watchdog action service is implemented. This is a standard method from the Open Connector Framework (OCF) so be sure to call super.start() in your version.
      Overrides:
      start in class WatchdogActionServiceConnector
      Throws:
      ConnectorCheckedException - there is a problem within the watchdog action service.
      UserNotAuthorizedException - the service was disconnected before/during start
    • processEvent

      public void processEvent(OpenMetadataOutTopicEvent event)
      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 WatchdogActionServiceConnector
      Parameters:
      event - event containing details of a change to an open metadata element.