public class ClusterMasterExecutorImpl
extends java.lang.Object
implements com.liferay.portal.kernel.cluster.ClusterMasterExecutor
| Constructor and Description |
|---|
ClusterMasterExecutorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
<T> java.util.concurrent.Future<T> |
executeOnMaster(com.liferay.portal.kernel.util.MethodHandler methodHandler) |
protected java.lang.String |
getMasterAddressString() |
void |
initialize() |
boolean |
isEnabled() |
boolean |
isMaster() |
protected void |
notifyMasterTokenTransitionListeners(boolean masterTokenAcquired) |
void |
registerClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) |
void |
setClusterExecutor(com.liferay.portal.kernel.cluster.ClusterExecutor clusterExecutor) |
void |
setClusterMasterTokenTransitionListeners(java.util.Set<com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners) |
void |
unregisterClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) |
public void destroy()
public <T> java.util.concurrent.Future<T> executeOnMaster(com.liferay.portal.kernel.util.MethodHandler methodHandler)
throws com.liferay.portal.kernel.exception.SystemException
executeOnMaster in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorcom.liferay.portal.kernel.exception.SystemExceptionpublic void initialize()
initialize 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 registerClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
registerClusterMasterTokenTransitionListener in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorpublic void setClusterExecutor(com.liferay.portal.kernel.cluster.ClusterExecutor clusterExecutor)
public void setClusterMasterTokenTransitionListeners(java.util.Set<com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener> clusterMasterTokenTransitionListeners)
public void unregisterClusterMasterTokenTransitionListener(com.liferay.portal.kernel.cluster.ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
unregisterClusterMasterTokenTransitionListener in interface com.liferay.portal.kernel.cluster.ClusterMasterExecutorprotected java.lang.String getMasterAddressString()
protected void notifyMasterTokenTransitionListeners(boolean masterTokenAcquired)