Class DefaultConsistentHashFactory.Builder

    • Field Detail

      • hashFunction

        protected final org.infinispan.commons.hash.Hash hashFunction
    • Method Detail

      • 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)
      • getPrimaryOwned

        public int getPrimaryOwned​(Address node)
      • getOwned

        public int getOwned​(Address node)
      • getPrimaryOwnedPerCapacity

        public float getPrimaryOwnedPerCapacity​(Address node)
      • getOwnedPerCapacity

        public float getOwnedPerCapacity​(Address node)
      • computeActualNumOwners

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

        public int getNumNodes()
      • getCapacityFactor

        public float getCapacityFactor​(Address node)
      • getTotalCapacity

        public float getTotalCapacity()