org.infinispan.distribution.ch
Class DefaultConsistentHashFactory.Builder
java.lang.Object
org.infinispan.distribution.ch.DefaultConsistentHashFactory.Builder
- Enclosing class:
- DefaultConsistentHashFactory
public static class DefaultConsistentHashFactory.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConsistentHashFactory.Builder
public DefaultConsistentHashFactory.Builder(int numOwners,
int numSegments,
List<Address> members)
DefaultConsistentHashFactory.Builder
public DefaultConsistentHashFactory.Builder(DefaultConsistentHash baseCH,
List<Address> actualMembers)
DefaultConsistentHashFactory.Builder
public DefaultConsistentHashFactory.Builder(DefaultConsistentHash baseCH)
DefaultConsistentHashFactory.Builder
public DefaultConsistentHashFactory.Builder(DefaultConsistentHashFactory.Builder other)
getActualNumOwners
public int getActualNumOwners()
getNumSegments
public int getNumSegments()
getMembers
public List<Address> getMembers()
getNumNodes
public int getNumNodes()
getOwners
public List<Address> getOwners(int segment)
getPrimaryOwner
public Address getPrimaryOwner(int segment)
getBackupOwners
public List<Address> getBackupOwners(int segment)
addOwner
public boolean addOwner(int segment,
Address owner)
addOwners
public boolean addOwners(int segment,
Collection<Address> newOwners)
removeOwner
public boolean removeOwner(int segment,
Address owner)
replacePrimaryOwner
public void replacePrimaryOwner(int segment,
Address newPrimaryOwner)
build
public DefaultConsistentHash build(Hash hashFunction)
getOwned
public int getOwned(Address node)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.