Class DefaultConsistentHashFactory.Builder
java.lang.Object
org.infinispan.distribution.ch.impl.DefaultConsistentHashFactory.Builder
- Enclosing class:
DefaultConsistentHashFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuilder
(DefaultConsistentHash baseCH) Builder
(DefaultConsistentHash baseCH, List<Address> actualMembers, Map<Address, Float> actualCapacityFactors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addOwners
(int segment, Collection<Address> newOwners) void
addPrimaryOwner
(int segment, Address newPrimaryOwner) build()
int
int
getBackupOwners
(int segment) float
getCapacityFactor
(Address node) int
int
int
getOwners
(int segment) int
getPrimaryOwned
(Address node) getPrimaryOwner
(int segment) boolean
removeOwner
(int segment, Address owner) void
replacePrimaryOwnerWithBackup
(int segment, Address newPrimaryOwner)
-
Field Details
-
stats
-
members
-
capacityFactors
-
modCount
protected int modCount
-
-
Constructor Details
-
Builder
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
getActualNumOwners
public int getActualNumOwners() -
getNumSegments
public int getNumSegments() -
getOwners
-
getPrimaryOwner
-
getBackupOwners
-
addOwner
-
addOwners
-
removeOwner
-
addPrimaryOwner
-
replacePrimaryOwnerWithBackup
-
build
-
getPrimaryOwned
-
getOwned
-
computeActualNumOwners
-
getMembers
-
getNumNodes
public int getNumNodes() -
getCapacityFactors
-
getCapacityFactor
-