protected static class TopologyAwareSyncConsistentHashFactory.Builder extends SyncConsistentHashFactory.Builder
| Modifier and Type | Field and Description |
|---|---|
protected TopologyLevel |
currentLevel |
protected TopologyInfo |
topologyInfo |
actualNumOwners, capacityFactors, hashFunction, ignoreMaxSegments, numOwners, numSegments, segmentOwners, segmentSize, sortedMembers, stats| Modifier | Constructor and Description |
|---|---|
protected |
Builder(Hash hashFunction,
int numOwners,
int numSegments,
List<Address> members,
Map<Address,Float> capacityFactors) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addBackupOwner(int segment,
Address candidate) |
protected boolean |
canAddOwners(List<Address> owners) |
protected double |
computeExpectedSegmentsForNode(Address node,
int numCopies) |
protected void |
copyOwners() |
addOwnerNoCheck, addPrimaryOwner, computeTotalCapacity, doCopyOwners, nextSegment, normalizedHash, populateOwners, sortprotected final TopologyInfo topologyInfo
protected TopologyLevel currentLevel
protected void copyOwners()
copyOwners in class SyncConsistentHashFactory.Builderprotected boolean addBackupOwner(int segment,
Address candidate)
addBackupOwner in class SyncConsistentHashFactory.Builderprotected boolean canAddOwners(List<Address> owners)
canAddOwners in class SyncConsistentHashFactory.Builderprotected double computeExpectedSegmentsForNode(Address node, int numCopies)
computeExpectedSegmentsForNode in class SyncConsistentHashFactory.BuilderCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.