Liferay 6.2-ce-ga5

com.liferay.portal.cluster
Class ClusterMasterExecutorImpl

java.lang.Object
  extended by com.liferay.portal.cluster.ClusterMasterExecutorImpl
All Implemented Interfaces:
ClusterMasterExecutor

public class ClusterMasterExecutorImpl
extends Object
implements ClusterMasterExecutor


Constructor Summary
ClusterMasterExecutorImpl()
           
 
Method Summary
 void destroy()
           
<T> Future<T>
executeOnMaster(MethodHandler methodHandler)
           
protected  String getMasterAddressString()
           
 void initialize()
           
 boolean isEnabled()
           
 boolean isMaster()
           
protected  void notifyMasterTokenTransitionListeners(boolean masterTokenAcquired)
           
 void registerClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
 void setClusterExecutor(ClusterExecutor clusterExecutor)
           
 void setClusterMasterTokenTransitionListeners(Set<ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners)
           
 void unregisterClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterMasterExecutorImpl

public ClusterMasterExecutorImpl()
Method Detail

destroy

public void destroy()

executeOnMaster

public <T> Future<T> executeOnMaster(MethodHandler methodHandler)
                          throws SystemException
Specified by:
executeOnMaster in interface ClusterMasterExecutor
Throws:
SystemException

initialize

public void initialize()
Specified by:
initialize in interface ClusterMasterExecutor

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ClusterMasterExecutor

isMaster

public boolean isMaster()
Specified by:
isMaster in interface ClusterMasterExecutor

registerClusterMasterTokenTransitionListener

public void registerClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
Specified by:
registerClusterMasterTokenTransitionListener in interface ClusterMasterExecutor

setClusterExecutor

public void setClusterExecutor(ClusterExecutor clusterExecutor)

setClusterMasterTokenTransitionListeners

public void setClusterMasterTokenTransitionListeners(Set<ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners)

unregisterClusterMasterTokenTransitionListener

public void unregisterClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
Specified by:
unregisterClusterMasterTokenTransitionListener in interface ClusterMasterExecutor

getMasterAddressString

protected String getMasterAddressString()

notifyMasterTokenTransitionListeners

protected void notifyMasterTokenTransitionListeners(boolean masterTokenAcquired)

Liferay 6.2-ce-ga5