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, sort
protected final TopologyInfo topologyInfo
protected TopologyLevel currentLevel
protected void copyOwners()
copyOwners
in class SyncConsistentHashFactory.Builder
protected boolean addBackupOwner(int segment, Address candidate)
addBackupOwner
in class SyncConsistentHashFactory.Builder
protected boolean canAddOwners(List<Address> owners)
canAddOwners
in class SyncConsistentHashFactory.Builder
protected double computeExpectedSegmentsForNode(Address node, int numCopies)
computeExpectedSegmentsForNode
in class SyncConsistentHashFactory.Builder
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.