com.liferay.portal.cluster
Class ClusterExecutorImpl

java.lang.Object
  extended by com.liferay.portal.cluster.ClusterBase
      extended by com.liferay.portal.cluster.ClusterExecutorImpl
All Implemented Interfaces:
com.liferay.portal.kernel.cluster.ClusterExecutor

public class ClusterExecutorImpl
extends ClusterBase
implements com.liferay.portal.kernel.cluster.ClusterExecutor

View Source

Author:
Tina Tian

Constructor Summary
ClusterExecutorImpl()
           
 
Method Summary
 void destroy()
           
 java.util.Map<com.liferay.portal.kernel.cluster.Address,java.util.concurrent.Future<?>> executeMulticastCall(com.liferay.portal.kernel.util.MethodWrapper methodWrapper)
           
 java.util.concurrent.Future<?> executeUnicastCall(com.liferay.portal.kernel.cluster.Address address, com.liferay.portal.kernel.util.MethodWrapper methodWrapper)
           
 java.util.List<com.liferay.portal.kernel.cluster.Address> getControlAddresses()
           
 com.liferay.portal.kernel.cluster.Address getLocalControlAddress()
           
protected  void initChannels()
           
 boolean isShortcutLocalMethod()
           
protected  FutureResult<java.lang.Object> runLocalMethod(com.liferay.portal.kernel.util.MethodWrapper methodWrapper)
           
 void setShortcutLocalMethod(boolean shortcutLocalMethod)
           
 
Methods inherited from class com.liferay.portal.cluster.ClusterBase
afterPropertiesSet, createChannel, getAddresses, initBindAddress, initSystemProperties, isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.cluster.ClusterExecutor
isEnabled
 

Constructor Detail

ClusterExecutorImpl

public ClusterExecutorImpl()
Method Detail

destroy

public void destroy()
Specified by:
destroy in class ClusterBase

executeMulticastCall

public java.util.Map<com.liferay.portal.kernel.cluster.Address,java.util.concurrent.Future<?>> executeMulticastCall(com.liferay.portal.kernel.util.MethodWrapper methodWrapper)
Specified by:
executeMulticastCall in interface com.liferay.portal.kernel.cluster.ClusterExecutor

executeUnicastCall

public java.util.concurrent.Future<?> executeUnicastCall(com.liferay.portal.kernel.cluster.Address address,
                                                         com.liferay.portal.kernel.util.MethodWrapper methodWrapper)
Specified by:
executeUnicastCall in interface com.liferay.portal.kernel.cluster.ClusterExecutor

getControlAddresses

public java.util.List<com.liferay.portal.kernel.cluster.Address> getControlAddresses()
Specified by:
getControlAddresses in interface com.liferay.portal.kernel.cluster.ClusterExecutor

getLocalControlAddress

public com.liferay.portal.kernel.cluster.Address getLocalControlAddress()
Specified by:
getLocalControlAddress in interface com.liferay.portal.kernel.cluster.ClusterExecutor

isShortcutLocalMethod

public boolean isShortcutLocalMethod()
Specified by:
isShortcutLocalMethod in interface com.liferay.portal.kernel.cluster.ClusterExecutor

setShortcutLocalMethod

public void setShortcutLocalMethod(boolean shortcutLocalMethod)

initChannels

protected void initChannels()
                     throws org.jgroups.ChannelException
Specified by:
initChannels in class ClusterBase
Throws:
org.jgroups.ChannelException

runLocalMethod

protected FutureResult<java.lang.Object> runLocalMethod(com.liferay.portal.kernel.util.MethodWrapper methodWrapper)