Class TopologyAwareSyncConsistentHashFactory.Builder
- java.lang.Object
-
- org.infinispan.distribution.ch.impl.SyncConsistentHashFactory.Builder
-
- org.infinispan.distribution.ch.impl.TopologyAwareSyncConsistentHashFactory.Builder
-
- Enclosing class:
- TopologyAwareSyncConsistentHashFactory
protected static class TopologyAwareSyncConsistentHashFactory.Builder extends SyncConsistentHashFactory.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected TopologyLevel
currentLevel
protected TopologyInfo
topologyInfo
-
Fields inherited from class org.infinispan.distribution.ch.impl.SyncConsistentHashFactory.Builder
actualNumOwners, capacityFactors, hashFunction, ignoreMaxSegments, numOwners, numSegments, segmentOwners, segmentSize, sortedMembers, stats
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addBackupOwner(int segment, Address candidate)
protected boolean
canAddOwners(List<Address> owners)
protected double
computeExpectedSegmentsForNode(Address node, int numCopies)
protected void
copyOwners()
-
Methods inherited from class org.infinispan.distribution.ch.impl.SyncConsistentHashFactory.Builder
addOwnerNoCheck, addPrimaryOwner, computeTotalCapacity, doCopyOwners, nextSegment, normalizedHash, populateOwners, sort
-
-
-
-
Field Detail
-
topologyInfo
protected final TopologyInfo topologyInfo
-
currentLevel
protected TopologyLevel currentLevel
-
-
Method Detail
-
copyOwners
protected void copyOwners()
- Overrides:
copyOwners
in classSyncConsistentHashFactory.Builder
-
addBackupOwner
protected boolean addBackupOwner(int segment, Address candidate)
- Overrides:
addBackupOwner
in classSyncConsistentHashFactory.Builder
-
canAddOwners
protected boolean canAddOwners(List<Address> owners)
- Overrides:
canAddOwners
in classSyncConsistentHashFactory.Builder
-
computeExpectedSegmentsForNode
protected double computeExpectedSegmentsForNode(Address node, int numCopies)
- Overrides:
computeExpectedSegmentsForNode
in classSyncConsistentHashFactory.Builder
-
-