|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.domain.cluster.BaseCluster org.ow2.jonas.lib.management.domain.cluster.cmi.CmiCluster
public class CmiCluster
Implements Cmi Cluster MBean
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ow2.jonas.lib.management.domain.cluster.BaseCluster |
---|
BaseCluster.DeployThread |
Field Summary | |
---|---|
protected int |
delayToRefresh
This configuration information is provided by a CMI MBean. |
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.ow2.jonas.lib.management.domain.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. |
int |
getDelayToRefresh()
Get the value of 'delayToRefresh' attribute. |
String |
getMcastAddr()
|
int |
getMcastPort()
|
void |
getMonitoringInfo()
Update dynamic info for this cluster. |
String |
getProtocol()
|
String |
getType()
|
void |
setDelayToRefresh(int delayToRefresh)
Set new value for the 'delayToRefresh' attribute and propagate this value to one CMI MBean corresponding to a cluster member. |
void |
setMcastAddr(String addr)
Set the multicast addr |
void |
setMcastPort(int port)
Set the multicast port |
void |
setProtocol(String protocol)
Set the protocol. |
Methods inherited from class org.ow2.jonas.lib.management.domain.cluster.BaseCluster |
---|
addMember, addServer, addServer, deployModule, getMembers, getName, getNbMembers, getObjectName, getRunningServerProxy, 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.ow2.jonas.lib.management.domain.cluster.BaseClusterMBean |
---|
addServer, 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
protected int delayToRefresh
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 protocol)
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 memberproxy
- The ServerProxy related object.
public void getMonitoringInfo()
public int getDelayToRefresh()
getDelayToRefresh
in interface CmiClusterMBean
public void setDelayToRefresh(int delayToRefresh)
setDelayToRefresh
in interface CmiClusterMBean
delayToRefresh
- new value for the 'delayToRefresh' attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |