public class ClusterMasterExecutorImpl
extends java.lang.Object
implements com.liferay.portal.kernel.cluster.ClusterMasterExecutor
| Constructor and Description |
|---|
ClusterMasterExecutorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
addClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) |
protected void |
deactivate() |
<T> com.liferay.portal.kernel.concurrent.NoticeableFuture<T> |
executeOnMaster(com.liferay.portal.kernel.util.MethodHandler methodHandler) |
protected java.lang.String |
getMasterClusterNodeId(boolean notify) |
boolean |
isEnabled() |
boolean |
isMaster() |
protected void |
notifyMasterTokenTransitionListeners(boolean masterTokenAcquired) |
void |
removeClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) |
protected void |
setClusterExecutorImpl(ClusterExecutorImpl clusterExecutorImpl) |
protected void |
setClusterMasterTokenTransitionListeners(java.util.Set<com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners) |
protected void |
setRelease(com.liferay.portal.kernel.model.Release release) |
public void addClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
addClusterMasterTokenTransitionListener in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorpublic <T> com.liferay.portal.kernel.concurrent.NoticeableFuture<T> executeOnMaster(com.liferay.portal.kernel.util.MethodHandler methodHandler)
executeOnMaster in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorpublic boolean isEnabled()
isEnabled in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorpublic boolean isMaster()
isMaster in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorpublic void removeClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
removeClusterMasterTokenTransitionListener in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorprotected void activate()
protected void deactivate()
protected java.lang.String getMasterClusterNodeId(boolean notify)
protected void notifyMasterTokenTransitionListeners(boolean masterTokenAcquired)
protected void setClusterExecutorImpl(ClusterExecutorImpl clusterExecutorImpl)
protected void setClusterMasterTokenTransitionListeners(java.util.Set<com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners)
protected void setRelease(com.liferay.portal.kernel.model.Release release)