|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.blocks.MembershipListenerAdapter
org.jgroups.blocks.PartitionedHashMap.ConsistentHashFunction<K>
public static class PartitionedHashMap.ConsistentHashFunction<K>
Field Summary |
---|
Fields inherited from class org.jgroups.blocks.MembershipListenerAdapter |
---|
membershipListeners, membershipListenersCache |
Constructor Summary | |
---|---|
PartitionedHashMap.ConsistentHashFunction()
|
Method Summary | |
---|---|
Address |
hash(K key,
java.util.List<Address> members)
Defines a hash function to pick the right node from the list of cluster nodes. |
void |
viewAccepted(View new_view)
Notify membership listener that new view was accepted. |
Methods inherited from class org.jgroups.blocks.MembershipListenerAdapter |
---|
addMembershipListener, block, removeMembershipListener, suspect, unblock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionedHashMap.ConsistentHashFunction()
Method Detail |
---|
public Address hash(K key, java.util.List<Address> members)
PartitionedHashMap.HashFunction
hash
in interface PartitionedHashMap.HashFunction<K>
key
- The object to be hashedmembers
- The membership. This value can be ignored for example if the hash function keeps
track of the membership itself, e.g. by registering as a membership
listener (PartitionedHashMap.addMembershipListener(org.jgroups.MembershipListener)
)
public void viewAccepted(View new_view)
MembershipListenerAdapter
viewAccepted
in interface MembershipListener
viewAccepted
in class MembershipListenerAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |