Class ClusterServiceManager


  • @ApplicationScoped
    public class ClusterServiceManager
    extends Object
    Class in charge of registering the node that should handle a particular service when working in a clustered environment.
    • Constructor Detail

      • ClusterServiceManager

        public ClusterServiceManager()
    • Method Detail

      • start

        public void start()
        Initializes the ClusterServiceManager and starts the thread in charge of registering the node in charge of a particular service. This method has no effect if the application is not running in a clustered environment.
      • shutdown

        public void shutdown()
        Stops the thread in charge of registering the node in charge of a particular service. This method has no effect if the application is not running in a clustered environment.
      • isCluster

        protected static boolean isCluster()
        Returns:
        true if the application is running in clustered environment, false otherwise.