org.apache.geronimo.messaging.cluster
Interface Cluster

All Known Implementing Classes:
ClusterImpl

public interface Cluster

Cluster of Nodes.

Version:
$Revision: 1.2 $ $Date: 2004/07/17 03:38:42 $

Method Summary
 void addListener(ClusterEventListener aListener)
          Adds a listener to this cluster.
 void addMember(NodeInfo aNode)
          Adds a Node to this cluster.
 ClusterInfo getClusterInfo()
          Gets the meta-data of this cluster.
 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.
 

Method Detail

getClusterInfo

public ClusterInfo getClusterInfo()
Gets the meta-data of this cluster.

Returns:
Cluster meta-data.

getMembers

public Set getMembers()
Gets the Nodes of this cluster.

Returns:
Set nodes.

addMember

public void addMember(NodeInfo aNode)
               throws NodeException
Adds a Node to this cluster.
When a Node is added to a cluster, this latter performs a dynamic reconfiguration of the node topology.
When the topology has been applied, it notifies the registered cluster event listeners of the addition.

Parameters:
aNode - Node to be added to this cluster.
Throws:
NodeException - Indicates that the specified node can not be added.

removeMember

public void removeMember(NodeInfo aNode)
                  throws NodeException
Removes a Node from this cluster.
See addMember for more details on the operations of this method.

Parameters:
aNode -
Throws:
NodeException - Indicates that the specified node can not be removed.

addListener

public void addListener(ClusterEventListener aListener)
Adds a listener to this cluster.

Parameters:
aListener - Listener to be registered.

removeListener

public void removeListener(ClusterEventListener aListener)
Removes the specified listener.

Parameters:
aListener - Listener to be removed.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.