|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.messaging.cluster.ClusterImpl
Cluster implementation.
It manages the nodes at the cluster level and triggers dynamic
reconfigurations of the underlying node topology when members are added or
removed.
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
ClusterImpl(ClusterInfo aClusterInfo,
Node aNode,
TopologyManager aTopologyManager)
Creates a cluster view mounted by the specified node. |
Method Summary | |
void |
addListener(ClusterEventListener aListener)
Adds a listener to this cluster. |
void |
addMember(NodeInfo aNode)
Adds a Node to this cluster. |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
ClusterInfo |
getClusterInfo()
Gets the meta-data of this cluster. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
Set |
getMembers()
Gets the Nodes of this cluster. |
void |
removeListener(ClusterEventListener aListener)
Removes the specified listener. |
void |
removeMember(NodeInfo aNode)
Removes a Node from this cluster. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public ClusterImpl(ClusterInfo aClusterInfo, Node aNode, TopologyManager aTopologyManager)
aClusterInfo
- Cluster meta-data.aNode
- Node which is mounting this cluster view.aTopologyManager
- Use to reconfigure the node topology when
members joined or leaved the cluster.Method Detail |
public void doStart() throws org.apache.geronimo.gbean.WaitingException, Exception
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
org.apache.geronimo.gbean.WaitingException
Exception
public void doStop() throws org.apache.geronimo.gbean.WaitingException, Exception
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
org.apache.geronimo.gbean.WaitingException
Exception
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public ClusterInfo getClusterInfo()
Cluster
getClusterInfo
in interface Cluster
public Set getMembers()
Cluster
getMembers
in interface Cluster
public void addMember(NodeInfo aNode) throws NodeException
Cluster
addMember
in interface Cluster
aNode
- Node to be added to this cluster.
NodeException
- Indicates that the specified node can not be
added.public void removeMember(NodeInfo aNode) throws NodeException
Cluster
addMember
for more details on the operations of this method.
removeMember
in interface Cluster
aNode
-
NodeException
- Indicates that the specified node can not be
removed.public void addListener(ClusterEventListener aListener)
Cluster
addListener
in interface Cluster
aListener
- Listener to be registered.public void removeListener(ClusterEventListener aListener)
Cluster
removeListener
in interface Cluster
aListener
- Listener to be removed.public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |