|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.management.cluster.BaseCluster
org.objectweb.jonas.management.cluster.cmi.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 String |
mcastAddr
mcast addr |
protected int |
mcastPort
mcast port |
protected String |
protocol
protocol used |
protected 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, domainName, 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(String serverName,
ServerProxy proxy)
Add a CMI Server to the list of the Cluster Make link between the member and the ServerProxy. |
ClusterMember |
createClusterMember(String svname,
ServerProxy proxy)
Create a new ClusterMember. |
String |
getMcastAddr()
|
int |
getMcastPort()
|
String |
getProtocol()
|
String |
getType()
|
void |
setMcastAddr(String addr)
Set the multicast addr |
void |
setMcastPort(int port)
Set the multicast port |
void |
setProtocol(String proto)
Set the protocol |
Methods inherited from class org.objectweb.jonas.management.cluster.BaseCluster |
---|
addMember, addServer, deployModule, getMembers, getName, getNbMembers, getObjectName, getServerProxy, getServerProxyList, getState, isMember, 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 |
Field Detail |
---|
protected String type
protected int mcastPort
protected String mcastAddr
protected String protocol
Constructor Detail |
---|
public CmiCluster(CmiClusterFactory cf) throws JMException
cf
- ClusterFactory
JMException
- could not create MBean instanceMethod Detail |
---|
public ClusterMember createClusterMember(String svname, ServerProxy proxy)
BaseCluster
createClusterMember
in class BaseCluster
public int getMcastPort()
getMcastPort
in interface CmiClusterMBean
public void setMcastPort(int port)
public String getMcastAddr()
getMcastAddr
in interface CmiClusterMBean
public void setMcastAddr(String addr)
public String getProtocol()
getProtocol
in interface CmiClusterMBean
public void setProtocol(String proto)
public String getType()
getType
in class BaseCluster
public boolean addCmiServer(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 |