Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.distribution.ch
Class DefaultConsistentHashFactory.Builder

java.lang.Object
  extended by org.infinispan.distribution.ch.DefaultConsistentHashFactory.Builder
Enclosing class:
DefaultConsistentHashFactory

public static class DefaultConsistentHashFactory.Builder
extends Object


Constructor Summary
DefaultConsistentHashFactory.Builder(DefaultConsistentHash baseCH)
           
DefaultConsistentHashFactory.Builder(DefaultConsistentHashFactory.Builder other)
           
DefaultConsistentHashFactory.Builder(DefaultConsistentHash baseCH, List<Address> actualMembers)
           
DefaultConsistentHashFactory.Builder(int numOwners, int numSegments, List<Address> members)
           
 
Method Summary
 boolean addOwner(int segment, Address owner)
           
 boolean addOwners(int segment, Collection<Address> newOwners)
           
 DefaultConsistentHash build(Hash hashFunction)
           
 int getActualNumOwners()
           
 List<Address> getBackupOwners(int segment)
           
 List<Address> getMembers()
           
 int getNumNodes()
           
 int getNumSegments()
           
 int getOwned(Address node)
           
 List<Address> getOwners(int segment)
           
 Address getPrimaryOwner(int segment)
           
 boolean removeOwner(int segment, Address owner)
           
 void replacePrimaryOwner(int segment, Address newPrimaryOwner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.