|
||||||||||
| 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.RelocatingAffinityGroup
public class RelocatingAffinityGroup
Stub, to be replaced by Keith's version (used for testing until we merge).
An affinity group which can relocate its member identities to other nodes. Key ideas swiped from Keith's branch to help us with merging.
These affinity groups can span multiple nodes and will eventually relocate their members to a single node. There probably needs to be some external control of the relocation in case we merge affinity groups or find that an algorithm run returns a single group.
| Constructor Summary | |
|---|---|
RelocatingAffinityGroup(long agid,
Map<Identity,Long> identities,
long generation)
Creates a new affinity group containing node information. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RelocatingAffinityGroup(long agid,
Map<Identity,Long> identities,
long generation)
agid - the group ididentities - the identities and their nodes in the groupgeneration - the generation number of this group
IllegalArgumentException - if identities is empty| Method Detail |
|---|
public int compareTo(Object obj)
Sorts based on the number of identities in the groups.
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic 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 AffinityGroup
|
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 | |||||||||