Class EngineConfigurationRefreshThread

  • All Implemented Interfaces:
    Runnable

    public class EngineConfigurationRefreshThread
    extends Object
    implements Runnable
    EngineConfigurationRefreshThread is the class responsible for establishing the listener for configuration updates. It runs as a separate thread until the listener is registered with the Governance Engine OMAS. At that point, the listener is able to process incoming configuration updates and this thread can end.
    • Constructor Detail

      • EngineConfigurationRefreshThread

        public EngineConfigurationRefreshThread​(Map<String,​GovernanceEngineHandler> engineHandlers,
                                                GovernanceEngineConfigurationClient configurationClient,
                                                GovernanceEngineEventClient eventClient,
                                                AuditLog auditLog,
                                                String localServerUserId,
                                                String localServerName,
                                                String accessServiceServerName,
                                                String accessServiceRootURL)
        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
        configurationClient - client that the listener is to be registered with
        eventClient - client for accessing the Governance Engine OMAS OutTopic
        auditLog - logging destination
        localServerUserId - userId for configuration requests
        localServerName - this server's name
        accessServiceServerName - metadata server's name
        accessServiceRootURL - platform location for metadata server
    • Method Detail

      • run

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

        public void stop()