public class ClusterExecutorImpl extends ClusterBase implements com.liferay.portal.kernel.cluster.ClusterExecutor, com.liferay.portal.util.PortalPortEventListener, com.liferay.portal.util.PortalPortProtocolEventListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLUSTER_EXECUTOR_CALLBACK_THREAD_POOL |
bindInetAddress| Constructor and Description |
|---|
ClusterExecutorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClusterEventListener(com.liferay.portal.kernel.cluster.ClusterEventListener clusterEventListener) |
void |
afterPropertiesSet() |
void |
destroy() |
com.liferay.portal.kernel.cluster.FutureClusterResponses |
execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest) |
void |
execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.ClusterResponseCallback clusterResponseCallback) |
void |
execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.ClusterResponseCallback clusterResponseCallback,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
fireClusterEvent(com.liferay.portal.kernel.cluster.ClusterEvent clusterEvent) |
protected com.liferay.portal.kernel.cluster.ClusterNodeResponse |
generateClusterNodeResponse(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
java.lang.Object returnValue,
java.lang.Exception exception) |
java.util.List<com.liferay.portal.kernel.cluster.ClusterEventListener> |
getClusterEventListeners() |
java.util.List<com.liferay.portal.kernel.cluster.Address> |
getClusterNodeAddresses() |
java.util.List<com.liferay.portal.kernel.cluster.ClusterNode> |
getClusterNodes() |
protected org.jgroups.JChannel |
getControlChannel() |
protected com.liferay.portal.kernel.cluster.FutureClusterResponses |
getExecutionResults(java.lang.String uuid) |
com.liferay.portal.kernel.cluster.ClusterNode |
getLocalClusterNode() |
com.liferay.portal.kernel.cluster.Address |
getLocalClusterNodeAddress() |
protected void |
initChannels() |
void |
initialize() |
protected void |
initLocalClusterNode() |
boolean |
isClusterNodeAlive(com.liferay.portal.kernel.cluster.Address address) |
boolean |
isClusterNodeAlive(java.lang.String clusterNodeId) |
protected boolean |
isShortcutLocalMethod() |
protected void |
memberJoined(com.liferay.portal.kernel.cluster.Address joinAddress,
com.liferay.portal.kernel.cluster.ClusterNode clusterNode) |
protected void |
memberRemoved(java.util.List<com.liferay.portal.kernel.cluster.Address> departAddresses) |
void |
portalPortConfigured(int port)
Deprecated.
As of 6.2.0, replaced by
portalPortProtocolConfigured(int, Boolean) |
void |
portalPortProtocolConfigured(int port,
java.lang.Boolean secure) |
protected java.util.List<com.liferay.portal.kernel.cluster.Address> |
prepareAddresses(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest) |
void |
removeClusterEventListener(com.liferay.portal.kernel.cluster.ClusterEventListener clusterEventListener) |
protected void |
runLocalMethod(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.FutureClusterResponses futureClusterResponses) |
protected void |
sendNotifyRequest() |
void |
setClusterEventListeners(java.util.List<com.liferay.portal.kernel.cluster.ClusterEventListener> clusterEventListeners) |
void |
setShortcutLocalMethod(boolean shortcutLocalMethod) |
createJChannel, getAddresses, initBindAddress, initSystemProperties, isEnabled, sendJGroupsMessagepublic static final java.lang.String CLUSTER_EXECUTOR_CALLBACK_THREAD_POOL
public void addClusterEventListener(com.liferay.portal.kernel.cluster.ClusterEventListener clusterEventListener)
addClusterEventListener in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic void afterPropertiesSet()
afterPropertiesSet in class ClusterBasepublic void destroy()
destroy in interface com.liferay.portal.kernel.cluster.ClusterExecutordestroy in class ClusterBasepublic com.liferay.portal.kernel.cluster.FutureClusterResponses execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest)
throws com.liferay.portal.kernel.exception.SystemException
execute in interface com.liferay.portal.kernel.cluster.ClusterExecutorcom.liferay.portal.kernel.exception.SystemExceptionpublic void execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.ClusterResponseCallback clusterResponseCallback)
throws com.liferay.portal.kernel.exception.SystemException
execute in interface com.liferay.portal.kernel.cluster.ClusterExecutorcom.liferay.portal.kernel.exception.SystemExceptionpublic void execute(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.ClusterResponseCallback clusterResponseCallback,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws com.liferay.portal.kernel.exception.SystemException
execute in interface com.liferay.portal.kernel.cluster.ClusterExecutorcom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.cluster.ClusterEventListener> getClusterEventListeners()
getClusterEventListeners in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic java.util.List<com.liferay.portal.kernel.cluster.Address> getClusterNodeAddresses()
getClusterNodeAddresses in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic java.util.List<com.liferay.portal.kernel.cluster.ClusterNode> getClusterNodes()
getClusterNodes in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic com.liferay.portal.kernel.cluster.ClusterNode getLocalClusterNode()
getLocalClusterNode in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic com.liferay.portal.kernel.cluster.Address getLocalClusterNodeAddress()
getLocalClusterNodeAddress in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic void initialize()
initialize in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic boolean isClusterNodeAlive(com.liferay.portal.kernel.cluster.Address address)
isClusterNodeAlive in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic boolean isClusterNodeAlive(java.lang.String clusterNodeId)
isClusterNodeAlive in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic void portalPortConfigured(int port)
portalPortProtocolConfigured(int, Boolean)portalPortConfigured in interface com.liferay.portal.util.PortalPortEventListenerpublic void portalPortProtocolConfigured(int port,
java.lang.Boolean secure)
portalPortProtocolConfigured in interface com.liferay.portal.util.PortalPortProtocolEventListenerpublic void removeClusterEventListener(com.liferay.portal.kernel.cluster.ClusterEventListener clusterEventListener)
removeClusterEventListener in interface com.liferay.portal.kernel.cluster.ClusterExecutorpublic void setClusterEventListeners(java.util.List<com.liferay.portal.kernel.cluster.ClusterEventListener> clusterEventListeners)
public void setShortcutLocalMethod(boolean shortcutLocalMethod)
protected void fireClusterEvent(com.liferay.portal.kernel.cluster.ClusterEvent clusterEvent)
protected com.liferay.portal.kernel.cluster.ClusterNodeResponse generateClusterNodeResponse(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
java.lang.Object returnValue,
java.lang.Exception exception)
protected org.jgroups.JChannel getControlChannel()
protected com.liferay.portal.kernel.cluster.FutureClusterResponses getExecutionResults(java.lang.String uuid)
protected void initChannels()
throws java.lang.Exception
initChannels in class ClusterBasejava.lang.Exceptionprotected void initLocalClusterNode()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isShortcutLocalMethod()
protected void memberJoined(com.liferay.portal.kernel.cluster.Address joinAddress,
com.liferay.portal.kernel.cluster.ClusterNode clusterNode)
protected void memberRemoved(java.util.List<com.liferay.portal.kernel.cluster.Address> departAddresses)
protected java.util.List<com.liferay.portal.kernel.cluster.Address> prepareAddresses(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest)
protected void runLocalMethod(com.liferay.portal.kernel.cluster.ClusterRequest clusterRequest,
com.liferay.portal.kernel.cluster.FutureClusterResponses futureClusterResponses)
protected void sendNotifyRequest()