|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.nodemap.affinity.AffinitySet
public class AffinitySet
The affinity group information for a single node, in a format which can be sent between nodes and the server. These affinity groups are data containers only.
| Constructor Summary | |
|---|---|
AffinitySet(long id,
long generation,
HashSet<Identity> identitySet)
Constructs a new affinity group with the given ID, generation number, and a set of initial identities to include. |
|
AffinitySet(long id,
long generation,
Identity identity)
Constructs a new affinity group with the given ID, generation number, and an initial identity to include. |
|
| Method Summary | |
|---|---|
(package private) void |
addIdentity(Identity id)
Add the given identity to this affinity group. |
long |
getGeneration()
Returns a generation number for this affinity group. |
long |
getId()
Returns the affinity group identifier. |
Set<Identity> |
getIdentities()
Returns the set of Identities which are members of this group. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AffinitySet(long id,
long generation,
Identity identity)
id - the affinity group identitygeneration - the generation number of this groupidentity - the first identity in this affinity set
public AffinitySet(long id,
long generation,
HashSet<Identity> identitySet)
id - the affinity group identitygeneration - the generation number of this groupidentitySet - the initial set of identities to include| Method Detail |
|---|
public long getId()
getId in interface AffinityGrouppublic Set<Identity> getIdentities()
Identities which are members of this group.
The set will contain at least one member.
getIdentities in interface AffinityGroupIdentities which are members of this grouppublic long getGeneration()
getGeneration in interface AffinityGrouppublic String toString()
toString in class Objectvoid addIdentity(Identity id)
id - the identity to add
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||