public class TopologyInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TopologyInfo.Cluster |
static class |
TopologyInfo.Location
Base class for locations.
|
static class |
TopologyInfo.Machine |
static class |
TopologyInfo.Node |
static class |
TopologyInfo.Rack |
static class |
TopologyInfo.Site |
Constructor and Description |
---|
TopologyInfo(int numSegments,
int numOwners,
Collection<Address> members,
Map<Address,Float> capacityFactors) |
public TopologyInfo(int numSegments, int numOwners, Collection<Address> members, Map<Address,Float> capacityFactors)
public int getDistinctLocationsCount(TopologyLevel level)
public int getDistinctLocationsCount(TopologyLevel level, Collection<Address> addresses)
public boolean duplicateLocation(TopologyLevel level, Collection<Address> addresses, Address candidate, boolean excludeCandidate)
public Object getLocationId(TopologyLevel level, Address address)
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 Collection<String> getAllSites()
public Collection<String> getSiteRacks(String site)
public Collection<String> getRackMachines(String site, String rack)
public String formatLocation(DecimalFormat df, TopologyInfo.Location location, String prefix)
public float computeTotalCapacity(Collection<Address> nodes, Map<Address,Float> capacityFactors)
public float getExpectedPrimarySegments(Address address)
public float getExpectedOwnedSegments(Address address)
public int getSiteIndex(Address address)
public int getRackIndex(Address address)
public int getMachineIndex(Address address)
Copyright © 2021 JBoss by Red Hat. All rights reserved.