org.activecluster.group
Class NodeMemberships
java.lang.Object
org.activecluster.group.NodeMemberships
- public class NodeMemberships
- extends Object
Represents all of the memberhips of a node and can be used to act
as a weighting to decide which is the least heavily loaded Node
to be assigned to a buddy group.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeMemberships
public NodeMemberships(Node node)
addToGroup
public void addToGroup(Group group)
removeFromGroup
public boolean removeFromGroup(Group group)
getNode
public Node getNode()
getWeighting
public int getWeighting()
- Returns the weighting of how heavily loaded the node is
so that a decision can be made on which node to buddy group
with
isMember
public boolean isMember(Group group)
- Returns true if this node is a member of the given group
Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.