org.ow2.jasmine.monitoring.mbeancmd.graph
Class Grapher

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.graph.Grapher

public class Grapher
extends java.lang.Object

Draws a graph based on data coming from an Outer pipe.


Field Summary
private  Configuration config
          Grapher configuration.
private  Outer[] outers
          Outers that feed the series.
private  Serie[] series
          Series.
 
Constructor Summary
Grapher(java.io.PipedOutputStream in, java.lang.String definitions)
          Creates a new Grapher.
 
Method Summary
private static void injectData(java.io.PrintWriter pr, Grapher g)
          Injects data.
static void main(java.lang.String[] args)
          Tests the Grapher implementation.
 void start()
          Starts the Series and then the Outers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

private Configuration config
Grapher configuration.


series

private Serie[] series
Series.


outers

private Outer[] outers
Outers that feed the series.

Constructor Detail

Grapher

public Grapher(java.io.PipedOutputStream in,
               java.lang.String definitions)
        throws java.io.IOException
Creates a new Grapher.

Parameters:
in - Input pipe.
definitions - Path to XML file defining the graph configuration.
Throws:
java.io.IOException - If ther's a problem reading definitions.
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Tests the Grapher implementation.

Parameters:
args - Arguments to use when creating the graph.
Throws:
java.io.IOException - If there's a problem reading the graph definition XML or creating a pipe.

injectData

private static void injectData(java.io.PrintWriter pr,
                               Grapher g)
Injects data. Used by the testing application, @see Grapher#main

Parameters:
pr - PrintWriter to the graph.
g - Grapher.

start

public void start()
Starts the Series and then the Outers.