Class GovernanceServerOutTopicListener

java.lang.Object
org.odpi.openmetadata.accessservices.governanceserver.api.GovernanceServerEventListener
org.odpi.openmetadata.governanceservers.enginehostservices.listener.GovernanceServerOutTopicListener

public class GovernanceServerOutTopicListener extends org.odpi.openmetadata.accessservices.governanceserver.api.GovernanceServerEventListener
GovernanceServerOutTopicListener is a class that is registered to listen on the Governance Server OMAS's out topic to receive any changes to the governance engines' configuration or new governance actions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GovernanceServerOutTopicListener(org.odpi.openmetadata.governanceservers.enginehostservices.enginemap.GovernanceEngineMap governanceEngineHandlers, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
    Constructor for the listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processEvent(org.odpi.openmetadata.accessservices.governanceserver.events.GovernanceServerEvent event)
    Process an event that was published by the Governance Server OMAS.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GovernanceServerOutTopicListener

      public GovernanceServerOutTopicListener(org.odpi.openmetadata.governanceservers.enginehostservices.enginemap.GovernanceEngineMap governanceEngineHandlers, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
      Constructor for the listener. Its job is to receive events and pass the information received on to the appropriate governance engine handler.
      Parameters:
      governanceEngineHandlers - these are the handlers for all the governance engines that are hosted by this engine host server.
      auditLog - logging destination
  • Method Details

    • processEvent

      public void processEvent(org.odpi.openmetadata.accessservices.governanceserver.events.GovernanceServerEvent event)
      Process an event that was published by the Governance Server OMAS. The events cover all defined governance engines and actions. This method only needs to pass on the information to those governance engines hosted in this server. Events relating to other governance engines can be ignored. So can events that are for capabilities not supported by these engine services.
      Specified by:
      processEvent in class org.odpi.openmetadata.accessservices.governanceserver.api.GovernanceServerEventListener
      Parameters:
      event - event object - call getEventType to find out what type of event.