|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.planetSh.PlanetshMap
public class PlanetshMap
Gets the node infos of a planetlab slice.
| Field Summary | |
|---|---|
private static long |
CACHE_TIME
The maximum cache time for the NODES_FILE. |
private java.util.ArrayList<Edge> |
edges
|
private static java.lang.String |
GEOCITIES_FILE
The path to the GeoLiteCity database -> property of Maxmind This product includes GeoLite data created by MaxMind, available from http://maxmind.com/ |
private java.util.ArrayList<DrawableLabel> |
labels
|
private java.util.ArrayList<Node> |
nodes
|
private static java.lang.String |
NODES_FILE
The path to the file to which the list of all the PlanetLab nodes will be cached. |
private PlanetLabMgr |
planetLabApi
|
private PlanetLabXmlRpcCaller |
planetSh
|
private ScenarioConfig |
scenarioConfig
|
| Constructor Summary | |
|---|---|
PlanetshMap(PlanetLabMgr planetLabApi,
ScenarioConfig config)
Constructs a PlanetshMap Object: - loads the Nodes from a cached file or from PlanetLab - assigns colors to nodes according to their proxy-groups - draws the edges between the group-nodes |
|
| Method Summary | |
|---|---|
static Node |
findNodeOfProxy(java.util.ArrayList<Node> nodes,
X2XProxy proxy)
looks in the node-array for a node with same hostname as proxy |
java.util.ArrayList<Edge> |
getEdges()
Returns an ArrayList of Edges that
represent pairs PlanetLab of computers and properties of interactions
between them. |
java.util.ArrayList<DrawableLabel> |
getLabels()
Returns an ArrayList of DrawableLabels that
represent text-labels that can be drawn on the map. |
java.util.ArrayList<Node> |
getNodes()
Returns an ArrayList of Nodes that
represent PlanetLab computers and their properties. |
PlanetLabXmlRpcCaller |
getPlanetLabCaller()
|
java.lang.String |
toString()
Returns a string representation of the NodeEdgeMap. |
private void |
updateNodeCache(java.io.File nodesFile)
Gets all nodes from the PlanetLab-API and caches them in the nodesFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<Node> nodes
private java.util.ArrayList<Edge> edges
private java.util.ArrayList<DrawableLabel> labels
private static final java.lang.String GEOCITIES_FILE
private static final java.lang.String NODES_FILE
private static final long CACHE_TIME
private PlanetLabXmlRpcCaller planetSh
private PlanetLabMgr planetLabApi
private ScenarioConfig scenarioConfig
| Constructor Detail |
|---|
public PlanetshMap(PlanetLabMgr planetLabApi,
ScenarioConfig config)
throws java.lang.Exception
planetLabApi - config -
java.lang.Exception| Method Detail |
|---|
private void updateNodeCache(java.io.File nodesFile)
throws java.lang.Exception
nodesFile -
java.lang.Exception
public static Node findNodeOfProxy(java.util.ArrayList<Node> nodes,
X2XProxy proxy)
proxy - - proxy to look for in node-array
public java.util.ArrayList<Node> getNodes()
NodeEdgeMapArrayList of Nodes that
represent PlanetLab computers and their properties.
getNodes in interface NodeEdgeMappublic java.util.ArrayList<Edge> getEdges()
NodeEdgeMapArrayList of Edges that
represent pairs PlanetLab of computers and properties of interactions
between them.
getEdges in interface NodeEdgeMappublic java.util.ArrayList<DrawableLabel> getLabels()
NodeEdgeMapArrayList of DrawableLabels that
represent text-labels that can be drawn on the map.
getLabels in interface NodeEdgeMappublic java.lang.String toString()
NodeEdgeMap.
toString in class java.lang.Objectpublic PlanetLabXmlRpcCaller getPlanetLabCaller()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||