@PublicAPI public class TopologyData extends Object
Constructor and Description |
---|
TopologyData() |
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Long>> |
getDistances()
This map is needed to store the dependency between host name and address.
|
Map<String,String> |
getHosts()
Host -> Hosts -> Distance
Store here only half of matrix - each host have distances to hosts added before.
|
void |
setDistances(Map<String,Map<String,Long>> distances) |
void |
setHosts(Map<String,String> hosts) |
public Map<String,Map<String,Long>> getDistances()
public Map<String,String> getHosts()