com.liferay.portal.kernel.cluster
Class ClusterExecutorUtil
java.lang.Object
com.liferay.portal.kernel.cluster.ClusterExecutorUtil
public class ClusterExecutorUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterExecutorUtil
public ClusterExecutorUtil()
addClusterEventListener
public static void addClusterEventListener(ClusterEventListener clusterEventListener)
destroy
public static void destroy()
execute
public static FutureClusterResponses execute(ClusterRequest clusterRequest)
throws SystemException
- Throws:
SystemException
execute
public static void execute(ClusterRequest clusterRequest,
ClusterResponseCallback clusterResponseCallback)
throws SystemException
- Throws:
SystemException
execute
public static void execute(ClusterRequest clusterRequest,
ClusterResponseCallback clusterResponseCallback,
long timeout,
TimeUnit timeUnit)
throws SystemException
- Throws:
SystemException
getClusterExecutor
public static ClusterExecutor getClusterExecutor()
getClusterNodeAddresses
public static List<Address> getClusterNodeAddresses()
getClusterNodes
public static List<ClusterNode> getClusterNodes()
getLocalClusterNode
public static ClusterNode getLocalClusterNode()
throws SystemException
- Throws:
SystemException
getLocalClusterNodeAddress
public static Address getLocalClusterNodeAddress()
initialize
public static void initialize()
isClusterNodeAlive
public static boolean isClusterNodeAlive(Address address)
isClusterNodeAlive
public static boolean isClusterNodeAlive(String clusterNodeId)
isEnabled
public static boolean isEnabled()
removeClusterEventListener
public static void removeClusterEventListener(ClusterEventListener clusterEventListener)
setClusterExecutor
public void setClusterExecutor(ClusterExecutor clusterExecutor)