Class EngineConfigurationRefreshThread

java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.threads.EngineConfigurationRefreshThread
All Implemented Interfaces:
Runnable

public class EngineConfigurationRefreshThread extends Object implements Runnable
EngineConfigurationRefreshThread is the class responsible for establishing the listener for configuration updates for a specific governance engine. It runs as a separate thread in a number of phases, both listening for metadata changes and periodically issuing calls to the metadata server. Firstly, it needs to retrieve the governance engine definition from the metadata store. Then it can create the handler for the governance engine. This means that incoming engine actions for this engine will be processed. Then it is listening for changes to the engine definition and actions to run.
  • Constructor Details

    • EngineConfigurationRefreshThread

      public EngineConfigurationRefreshThread(EngineConfig engineConfig, GovernanceEngineMap engineHandlers, OpenMetadataEventClient eventClient, AuditLog auditLog, String localServerName)
      The constructor takes details of the governance engine handlers needed by the listener and the information needed to log errors if the metadata server is not available.
      Parameters:
      engineHandlers - list of governance engine handlers running locally mapped to their names
      eventClient - client for accessing the Governance Server OMAS OutTopic
      auditLog - logging destination
      localServerName - this server's name
  • Method Details

    • run

      public void run()
      Method that runs when the thread is started.
      Specified by:
      run in interface Runnable
    • stop

      public void stop()
      Stop the thread