protected double computeExpectedSegmentsForNode(Address node, int numCopies) {
return topologyInfo.computeExpectedSegments(numSegments, numCopies, node);
}
private boolean locationAlreadyAdded(Address candidate, List<Address> owners, TopologyLevel level) {
TopologyAwareAddress topologyAwareCandidate = (TopologyAwareAddress) candidate;
boolean locationAlreadyAdded = false;
for (Address owner : owners) {
TopologyAwareAddress topologyAwareOwner = (TopologyAwareAddress) owner;
switch (level) {
case SITE:
locationAlreadyAdded = topologyAwareCandidate.isSameSite(topologyAwareOwner);
break;
case RACK: