org.objectweb.jonas.management.cluster
Class TomcatCluster
java.lang.Object
org.objectweb.jonas.management.cluster.BaseCluster
org.objectweb.jonas.management.cluster.TomcatCluster
- All Implemented Interfaces:
- BaseClusterMBean, TomcatClusterMBean
- public class TomcatCluster
- extends BaseCluster
- implements TomcatClusterMBean
Implements Tomcat Cluster MBean
- Author:
- Adriana Danes, Philippe Durieux
Field Summary |
protected java.lang.String |
type
The type of Cluster, that is part of the MBean ObjectName |
Fields inherited from class org.objectweb.jonas.management.cluster.BaseCluster |
cf, dm, j2eedomain, jmx, logger, members, name, objectName, state, STATE_DOWN, STATE_FAILED, STATE_INIT, STATE_PARTIALLY_DOWN, STATE_PARTIALLY_FAILED, STATE_PARTIALLY_UP, STATE_UNKNOWN, STATE_UP |
Methods inherited from class org.objectweb.jonas.management.cluster.BaseCluster |
addMember, addServer, deployModule, getMembers, getName, getNbMembers, getObjectName, getServer, getServerProxy, getServerProxyList, getState, removeServer, setName, startit, stopit, undeployModule, uploadDeployModule, uploadFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.management.cluster.BaseClusterMBean |
addServer, deployModule, getMembers, getName, getNbMembers, getState, removeServer, startit, stopit, undeployModule, uploadDeployModule, uploadFile |
type
protected java.lang.String type
- The type of Cluster, that is part of the MBean ObjectName
TomcatCluster
public TomcatCluster(TomcatClusterFactory cf)
throws javax.management.JMException
- Web level loadbalancing cluster constructor
- Parameters:
cf
- ClusterFactory
- Throws:
javax.management.JMException
- could not create MBean instance
createClusterMember
public ClusterMember createClusterMember(java.lang.String svname,
ServerProxy proxy)
- Description copied from class:
BaseCluster
- Create a new ClusterMember. Depends on the underlaying class.
- Specified by:
createClusterMember
in class BaseCluster
- Parameters:
svname
- proxy
-
getType
public java.lang.String getType()
- Specified by:
getType
in class BaseCluster
- Returns:
- The String type to be put in the ObjectName
addTomcatServer
public boolean addTomcatServer(java.lang.String serverName,
java.lang.String hostname,
ServerProxy proxy)
- Add a Tomcat Servber to the list of the TomcatCluster
Make link between the member and the ServerProxy.
- Parameters:
serverName
- name of the managed server which corresponds to a Tomcat session replication cluster memeberhostname
- servernameproxy
- The ServerProxy related object.
- Returns:
- True if correctly added in the List.
getMcastAddr
public java.lang.String getMcastAddr()
- Specified by:
getMcastAddr
in interface TomcatClusterMBean
getMcastDropTime
public long getMcastDropTime()
- Specified by:
getMcastDropTime
in interface TomcatClusterMBean
getMcastFrequency
public long getMcastFrequency()
- Specified by:
getMcastFrequency
in interface TomcatClusterMBean
getMcastPort
public int getMcastPort()
- Specified by:
getMcastPort
in interface TomcatClusterMBean
getMcastSocketTimeout
public int getMcastSocketTimeout()
- Specified by:
getMcastSocketTimeout
in interface TomcatClusterMBean
setMcastAddr
public void setMcastAddr(java.lang.String mcastAddr)
setMcastDropTime
public void setMcastDropTime(long mcastDropTime)
setMcastFrequency
public void setMcastFrequency(long mcastFrequency)
setMcastPort
public void setMcastPort(int mcastPort)
setMcastSocketTimeout
public void setMcastSocketTimeout(int mcastSocketTimeout)