@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(InetAddress hostAddress,
InetAddress hostAddress2)
Returns the distance between 2 hosts identified by their inet addresses.
|
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<InetAddress> |
getHosts()
Gets the set of hosts handled by resource manager.
|
HashMap<InetAddress,Long> |
getHostTopology(InetAddress hostAddress)
Gets the distances associated to the host.
|
boolean |
knownHost(InetAddress hostAddress)
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)
Long getDistance(InetAddress hostAddress, InetAddress hostAddress2)
Long getDistance(String hostName, String hostName2)
boolean onSameHost(org.objectweb.proactive.core.node.Node node, org.objectweb.proactive.core.node.Node node2)
boolean knownHost(InetAddress hostAddress)
hostAddress
- the address of the hostSet<InetAddress> getHosts()
HashMap<InetAddress,Long> getHostTopology(InetAddress hostAddress)
hostAddress
- - inet address of the hostList<Cluster<String>> clusterize(int numberOfClusters, DistanceFunction distanceFunction)
numberOfClusters
- the number of clusters to producedistanceFunction
- the function for distances recalculation