Class ScatteredConsistentHashFactory.Builder
java.lang.Object
org.infinispan.distribution.ch.impl.ScatteredConsistentHashFactory.Builder
- Enclosing class:
- ScatteredConsistentHashFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuilder
(ScatteredConsistentHash baseCH) Builder
(ScatteredConsistentHash baseCH, List<Address> actualMembers, Map<Address, Float> actualCapacityFactors) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrimaryOwner
(int segment, Address newPrimaryOwner) build()
float
getCapacityFactor
(Address node) int
int
int
int
getPrimaryOwned
(Address node) getPrimaryOwner
(int segment) void
setRebalanced
(boolean isRebalanced)
-
Field Details
-
stats
-
members
-
capacityFactors
-
modCount
protected int modCount
-
-
Constructor Details
-
Builder
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
getNumSegments
public int getNumSegments() -
getPrimaryOwner
-
addPrimaryOwner
-
build
-
setRebalanced
public void setRebalanced(boolean isRebalanced) -
getPrimaryOwned
-
getOwned
-
getMembers
-
getNumNodes
public int getNumNodes() -
getCapacityFactors
-
getCapacityFactor
-