|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activecluster.group.Group
Represents a logical group of nodes in a cluster, such as a Master and a number of Slaves which operate as a logical unit.
A cluster can be divided into a single group, or many groups depending on the policy required. The number of groups could be application defined; created on demand or there could even be one group for each node, with other nodes acting as buddy nodes in each nodes' group (i.e. each node is a master with N buddies/slaves)
Constructor Summary | |
Group()
|
|
Group(int minimumMemberCount,
int maximumMemberCount)
|
Method Summary | |
int |
addMember(Node node)
Adds a node to the given group |
int |
getMaximumMemberCount()
|
int |
getMemberCount()
|
List |
getMembers()
|
int |
getMinimumMemberCount()
|
boolean |
isFull()
Returns true if the group cannot accept any more new members |
boolean |
isUsable()
Returns true if the group is usable, that it has enough members to be used. |
boolean |
removeMember(Node node)
|
void |
setMaximumMemberCount(int maximumMemberCount)
|
void |
setMinimumMemberCount(int minimumMemberCount)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Group()
public Group(int minimumMemberCount, int maximumMemberCount)
Method Detail |
public List getMembers()
public int addMember(Node node)
public boolean removeMember(Node node)
public boolean isUsable()
public boolean isFull()
public int getMemberCount()
public int getMaximumMemberCount()
public void setMaximumMemberCount(int maximumMemberCount)
public int getMinimumMemberCount()
public void setMinimumMemberCount(int minimumMemberCount)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |