org.activecluster.group
Class NodeMemberships

java.lang.Object
  extended byorg.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 $

Constructor Summary
NodeMemberships(Node node)
           
 
Method Summary
 void addToGroup(Group group)
           
 Node getNode()
           
 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
 boolean isMember(Group group)
          Returns true if this node is a member of the given group
 boolean removeFromGroup(Group group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeMemberships

public NodeMemberships(Node node)
Method Detail

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-2008 Protique, Ltd.. All Rights Reserved.