public class TopologyInfo extends Object
Constructor and Description |
---|
TopologyInfo(Collection<Address> members,
Map<Address,Float> capacityFactors) |
Modifier and Type | Method and Description |
---|---|
int |
computeExpectedSegments(int numSegments,
int numOwners,
Address node) |
float |
computeTotalCapacity(Collection<Address> nodes,
Map<Address,Float> capacityFactors) |
int |
getAllMachinesCount() |
int |
getAllNodesCount() |
int |
getAllRacksCount() |
Set<String> |
getAllSites() |
int |
getAllSitesCount() |
int |
getDistinctLocationsCount(TopologyLevel level,
int numOwners) |
Collection<Address> |
getMachineNodes(String site,
String rack,
String machine) |
Set<String> |
getRackMachines(String site,
String rack) |
Collection<Address> |
getRackNodes(String site,
String rack) |
Collection<Address> |
getSiteNodes(String site) |
Set<String> |
getSiteRacks(String site) |
String |
toString() |
public TopologyInfo(Collection<Address> members, Map<Address,Float> capacityFactors)
public Collection<Address> getSiteNodes(String site)
public Collection<Address> getRackNodes(String site, String rack)
public Collection<Address> getMachineNodes(String site, String rack, String machine)
public int getAllSitesCount()
public int getAllRacksCount()
public int getAllMachinesCount()
public int getAllNodesCount()
public int getDistinctLocationsCount(TopologyLevel level, int numOwners)
public float computeTotalCapacity(Collection<Address> nodes, Map<Address,Float> capacityFactors)
public int computeExpectedSegments(int numSegments, int numOwners, Address node)
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.