Package org.openbravo.cluster
Class ClusterServiceManager
- java.lang.Object
-
- org.openbravo.cluster.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 Summary
Constructors Constructor Description ClusterServiceManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
isCluster()
void
shutdown()
Stops the thread in charge of registering the node in charge of a particular service.void
start()
Initializes the ClusterServiceManager and starts the thread in charge of registering the node in charge of a particular service.
-
-
-
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.
-
-