Class DefaultConsistentHashFactory.Builder

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

protected static class DefaultConsistentHashFactory.Builder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getActualNumOwners

      public int getActualNumOwners()
    • getNumSegments

      public int getNumSegments()
    • 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)
    • addPrimaryOwner

      public void addPrimaryOwner(int segment, Address newPrimaryOwner)
    • replacePrimaryOwnerWithBackup

      public void replacePrimaryOwnerWithBackup(int segment, Address newPrimaryOwner)
    • build

      public DefaultConsistentHash build()
    • getPrimaryOwned

      public int getPrimaryOwned(Address node)
    • getOwned

      public int getOwned(Address node)
    • computeActualNumOwners

      public int computeActualNumOwners(int numOwners, List<Address> members, Map<Address,Float> capacityFactors)
    • getMembers

      public List<Address> getMembers()
    • getNumNodes

      public int getNumNodes()
    • getCapacityFactors

      public Map<Address,Float> getCapacityFactors()
    • getCapacityFactor

      public float getCapacityFactor(Address node)