Liferay 6.2-ce-ga5

com.liferay.portal.kernel.cluster
Class ClusterMasterExecutorUtil

java.lang.Object
  extended by com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil

public class ClusterMasterExecutorUtil
extends Object


Constructor Summary
ClusterMasterExecutorUtil()
           
 
Method Summary
static
<T> Future<T>
executeOnMaster(MethodHandler methodHandler)
           
static ClusterMasterExecutor getClusterMasterExecutor()
           
static void initialize()
           
static boolean isEnabled()
           
static boolean isMaster()
           
static void registerClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
 void setClusterMasterExecutor(ClusterMasterExecutor clusterMasterExecutor)
           
static void unregisterClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterMasterExecutorUtil

public ClusterMasterExecutorUtil()
Method Detail

executeOnMaster

public static <T> Future<T> executeOnMaster(MethodHandler methodHandler)
                                 throws SystemException
Throws:
SystemException

getClusterMasterExecutor

public static ClusterMasterExecutor getClusterMasterExecutor()

initialize

public static void initialize()

isEnabled

public static boolean isEnabled()

isMaster

public static boolean isMaster()

registerClusterMasterTokenTransitionListener

public static void registerClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)

unregisterClusterMasterTokenTransitionListener

public static void unregisterClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)

setClusterMasterExecutor

public void setClusterMasterExecutor(ClusterMasterExecutor clusterMasterExecutor)

Liferay 6.2-ce-ga5