|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.geronimo.clustering.MBeanImpl
org.apache.geronimo.clustering.NamedMBeanImpl
org.apache.geronimo.clustering.Node
A Node is an instance of a connection to a Cluster. Nodes are named uniquely within their Cluster and VM. A VM may contain more than one Node.
| Field Summary | |
protected Cluster |
_cluster
|
protected Data |
_data
|
protected org.apache.commons.logging.Log |
_log
|
| Fields inherited from class org.apache.geronimo.clustering.MBeanImpl |
_objectName, _server |
| Constructor Summary | |
Node()
|
|
| Method Summary | |
void |
applyDataDelta(DataDelta delta)
Called by Cluster to notify node of a change to Cluster state. |
boolean |
canStart()
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
Cluster |
getCluster()
|
String |
getClusterName()
Returns the Node's Cluster's MBean's unique identifier. |
javax.management.ObjectName |
getClusterObjectName()
|
Data |
getData()
Called by Cluster to retrieve current Cluster state. |
static javax.management.ObjectName |
makeObjectName(String clusterName,
String nodeName)
Makes an ObjectName for a Node MBean with the given parameters. |
void |
setData(Data data)
Called by Cluster to initialise the state of a [new] node. |
void |
setMetaData(List members)
Called by Cluster when a change in membership occurs. |
| Methods inherited from class org.apache.geronimo.clustering.NamedMBeanImpl |
getName |
| Methods inherited from class org.apache.geronimo.clustering.MBeanImpl |
canStop, getObjectName, getReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.logging.Log _log
protected Cluster _cluster
protected Data _data
| Constructor Detail |
public Node()
| Method Detail |
public static javax.management.ObjectName makeObjectName(String clusterName,
String nodeName)
throws Exception
clusterName - a String valuenodeName - a String value
ObjectName value
Exception - if an error occurspublic String getClusterName()
String valuepublic Cluster getCluster()
public javax.management.ObjectName getClusterObjectName()
public void setMetaData(List members)
MetaDataListener
setMetaData in interface MetaDataListenermembers - a List of members.public Data getData()
DataListener
getData in interface DataListenerpublic void setData(Data data)
DataListener
setData in interface DataListenerdata - Data to be used as the node's initial
state.public void applyDataDelta(DataDelta delta)
DataDeltaListener
applyDataDelta in interface DataDeltaListenerdelta - a DataDelta to be applied to the node's
current state.public boolean canStart()
canStart in class NamedMBeanImplpublic void doStart()
doStart in class MBeanImplpublic void doStop()
doStop in class MBeanImplpublic void doFail()
doFail in class MBeanImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||