tigase.pubsub.cluster
Class ClusterNodeMap
java.lang.Object
tigase.pubsub.cluster.ClusterNodeMap
public class ClusterNodeMap
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterNodeMap
public ClusterNodeMap(Set<tigase.xmpp.JID> cluster_nodes)
addPubSubNode
public void addPubSubNode(String nodeName)
addPubSubNode
public void addPubSubNode(String[] nodeNames)
assign
public void assign(String clusterNodeId,
String pubSubNodeName)
getClusterNodeId
public String getClusterNodeId(String pubsubNodeName)
getClusterNodesLoad
public Map<String,Integer> getClusterNodesLoad()
getNewOwnerOfNode
public String getNewOwnerOfNode(String nodeName)
- Stupid name, but important method. This meathod realize Load-Balancing
- Returns:
- Name of (usual) less loaded cluster node
Copyright © 2008-2012 Tigase. All Rights Reserved.