@PublicAPI public interface Topology extends Serializable
ResourceManager.getTopology()
method.Modifier and Type | Method and Description |
---|---|
List<Cluster<String>> |
clusterize(int numberOfClusters,
DistanceFunction distanceFunction)
Clustirizes hosts into clusters based on their proximity
|
Long |
getDistance(org.objectweb.proactive.core.node.Node node,
org.objectweb.proactive.core.node.Node node2)
Returns the distance between 2 nodes.
|
Long |
getDistance(String hostName,
String hostName2)
Returns the distance between 2 hosts identified by their domain names.
|
Set<String> |
getHosts()
Gets the set of hosts handled by resource manager.
|
HashMap<String,Long> |
getHostTopology(String hostName)
Gets the distances associated to the host.
|
InetAddress |
getInetAddress(String hostName)
Return the inet address associated with this host
|
boolean |
knownHost(String hostName)
Checks if the information about host is presented in the topology records.
|
boolean |
onSameHost(org.objectweb.proactive.core.node.Node node,
org.objectweb.proactive.core.node.Node node2)
Checks if 2 nodes are on the sane host.
|
Long getDistance(org.objectweb.proactive.core.node.Node node, org.objectweb.proactive.core.node.Node node2)
boolean onSameHost(org.objectweb.proactive.core.node.Node node, org.objectweb.proactive.core.node.Node node2)
Long getDistance(String hostName, String hostName2)
boolean knownHost(String hostName)
hostName
- name of the hostSet<String> getHosts()
InetAddress getInetAddress(String hostName)
hostName
- HashMap<String,Long> getHostTopology(String hostName)
hostName
- - name of the hostList<Cluster<String>> clusterize(int numberOfClusters, DistanceFunction distanceFunction)
numberOfClusters
- the number of clusters to producedistanceFunction
- the function for distances recalculation