|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.management.cluster.BaseCluster org.objectweb.jonas.management.cluster.CmiCluster
public class CmiCluster
Implements Tomcat Cluster MBean
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.objectweb.jonas.management.cluster.BaseCluster |
---|
BaseCluster.DeployThread |
Field Summary | |
---|---|
protected java.lang.String |
mcastAddr
mcast addr |
protected int |
mcastPort
mcast port |
protected java.lang.String |
protocol
protocol used |
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, 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 |
Constructor Summary | |
---|---|
CmiCluster(CmiClusterFactory cf)
CMI cluster constructor |
Method Summary | |
---|---|
boolean |
addCmiServer(java.lang.String serverName,
ServerProxy proxy)
Add a CMI Server to the list of the Cluster Make link between the member and the ServerProxy. |
ClusterMember |
createClusterMember(java.lang.String svname,
ServerProxy proxy)
Create a new ClusterMember. |
java.lang.String |
getMcastAddr()
|
int |
getMcastPort()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getType()
|
void |
setMcastAddr(java.lang.String addr)
Set the multicast addr |
void |
setMcastPort(int port)
Set the multicast port |
void |
setProtocol(java.lang.String proto)
Set the protocol |
Methods inherited from class org.objectweb.jonas.management.cluster.BaseCluster |
---|
addMember, addServer, 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, addServer, deployModule, getMembers, getName, getNbMembers, getState, removeServer, startit, stopit, undeployModule, uploadDeployModule, uploadFile |
Field Detail |
---|
protected java.lang.String type
protected int mcastPort
protected java.lang.String mcastAddr
protected java.lang.String protocol
Constructor Detail |
---|
public CmiCluster(CmiClusterFactory cf) throws javax.management.JMException
cf
- ClusterFactory
javax.management.JMException
- could not create MBean instanceMethod Detail |
---|
public ClusterMember createClusterMember(java.lang.String svname, ServerProxy proxy)
BaseCluster
createClusterMember
in class BaseCluster
public int getMcastPort()
getMcastPort
in interface CmiClusterMBean
public void setMcastPort(int port)
public java.lang.String getMcastAddr()
getMcastAddr
in interface CmiClusterMBean
public void setMcastAddr(java.lang.String addr)
public java.lang.String getProtocol()
getProtocol
in interface CmiClusterMBean
public void setProtocol(java.lang.String proto)
public java.lang.String getType()
getType
in class BaseCluster
public boolean addCmiServer(java.lang.String serverName, ServerProxy proxy)
serverName
- name of the managed server which corresponds to a Tomcat session replication cluster memeberproxy
- The ServerProxy related object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |