Class DefaultConsistentHashFactory.Builder

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

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

        public int getNumNodes()
      • getCapacityFactor

        public float getCapacityFactor​(Address node)