com.liferay.portal.cluster
Class ClusterBase

java.lang.Object
  extended by com.liferay.portal.cluster.ClusterBase
Direct Known Subclasses:
ClusterExecutorImpl, ClusterLinkImpl

public abstract class ClusterBase
extends java.lang.Object

View Source

Author:
Shuyang Zhou

Constructor Summary
ClusterBase()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.jgroups.JChannel createChannel(java.lang.String properties, org.jgroups.Receiver receiver, java.lang.String clusterName)
           
abstract  void destroy()
           
protected  java.util.List<com.liferay.portal.kernel.cluster.Address> getAddresses(org.jgroups.JChannel channel)
           
protected  void initBindAddress()
           
protected abstract  void initChannels()
           
protected  void initSystemProperties()
           
 boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterBase

public ClusterBase()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

destroy

public abstract void destroy()

isEnabled

public boolean isEnabled()

createChannel

protected org.jgroups.JChannel createChannel(java.lang.String properties,
                                             org.jgroups.Receiver receiver,
                                             java.lang.String clusterName)
                                      throws org.jgroups.ChannelException
Throws:
org.jgroups.ChannelException

getAddresses

protected java.util.List<com.liferay.portal.kernel.cluster.Address> getAddresses(org.jgroups.JChannel channel)

initBindAddress

protected void initBindAddress()
                        throws java.io.IOException
Throws:
java.io.IOException

initChannels

protected abstract void initChannels()
                              throws org.jgroups.ChannelException
Throws:
org.jgroups.ChannelException

initSystemProperties

protected void initSystemProperties()