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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.graph.Serie
All Implemented Interfaces:
java.lang.Runnable

public class Serie
extends java.lang.Object
implements java.lang.Runnable

Represents a series of data.


Field Summary
private  SerieConfig conf
          The Series' configuration.
private  java.io.LineNumberReader in
          Reader associated with the stream.
private  java.util.List listeners
          List of listeners.
private  java.util.logging.Logger logger
          Logger.
private  java.io.PipedOutputStream source
          Source stream.
 
Constructor Summary
Serie(SerieConfig conf)
          Creates the series based on a configuration.
 
Method Summary
 void addSerieListener(SerieListener listener)
          Adds a series listener.
 SerieConfig getConfig()
           
 java.io.PipedOutputStream getSource()
           
 void run()
          Implementation of inherited method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

private SerieConfig conf
The Series' configuration.


source

private java.io.PipedOutputStream source
Source stream.


in

private java.io.LineNumberReader in
Reader associated with the stream.


listeners

private java.util.List listeners
List of listeners.


logger

private java.util.logging.Logger logger
Logger.

Constructor Detail

Serie

public Serie(SerieConfig conf)
      throws java.io.IOException
Creates the series based on a configuration.

Parameters:
conf - Configuration.
Throws:
java.io.IOException - If the associated pipe cannot be created.
Method Detail

getSource

public java.io.PipedOutputStream getSource()
Returns:
The source pipe.

getConfig

public SerieConfig getConfig()
Returns:
The Series configuration.

addSerieListener

public void addSerieListener(SerieListener listener)
Adds a series listener.

Parameters:
listener - Listener to add.

run

public void run()
Implementation of inherited method.

Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()