seda.sandStorm.internal
Class StageGraph

java.lang.Object
  extended by seda.sandStorm.internal.StageGraph

public class StageGraph
extends java.lang.Object

This class provides an interface allowing operations to be performed on the graph of stages within the application. Used internally (for example, by AggThrottle) to determine stage connectivity and communication statistics. Gathers data from sources such as SinkProxy.

See Also:
AggThrottle, SinkProxy

Nested Class Summary
(package private)  class StageGraph.stageList
           
 
Field Summary
private static boolean DEBUG
           
private  java.util.Vector edges
           
private  java.util.Hashtable edgesFrom
           
private  java.io.PrintWriter graphpw
           
private  java.util.Vector stages
           
private  java.util.Hashtable threads
           
 
Constructor Summary
StageGraph(ManagerIF mgr)
           
 
Method Summary
 void addEdge(StageGraphEdge edge)
           
 void addStage(StageWrapperIF stage)
           
 void addThread(java.lang.Thread thread, StageWrapperIF stage)
           
 void dumpGraph()
          Output the graph in a format that can be used by the AT&T 'graphviz' program: http://www.research.att.com/sw/tools/graphviz/ Makes it easy to draw pretty pictures of stage graphs.
 StageGraphEdge[] getEdges()
           
 StageGraphEdge[] getEdgesFromStage(StageWrapperIF fromStage)
           
 StageWrapperIF getStageFromThread(java.lang.Thread thread)
           
 StageWrapperIF[] getStages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

stages

private java.util.Vector stages

edges

private java.util.Vector edges

threads

private java.util.Hashtable threads

edgesFrom

private java.util.Hashtable edgesFrom

graphpw

private java.io.PrintWriter graphpw
Constructor Detail

StageGraph

StageGraph(ManagerIF mgr)
Method Detail

getStages

public StageWrapperIF[] getStages()

getEdges

public StageGraphEdge[] getEdges()

getEdgesFromStage

public StageGraphEdge[] getEdgesFromStage(StageWrapperIF fromStage)

getStageFromThread

public StageWrapperIF getStageFromThread(java.lang.Thread thread)

addStage

public void addStage(StageWrapperIF stage)

addThread

public void addThread(java.lang.Thread thread,
                      StageWrapperIF stage)

addEdge

public void addEdge(StageGraphEdge edge)

dumpGraph

public void dumpGraph()
Output the graph in a format that can be used by the AT&T 'graphviz' program: http://www.research.att.com/sw/tools/graphviz/ Makes it easy to draw pretty pictures of stage graphs.