org.echarts.monitor
Class PrintStreamMonitor

java.lang.Object
  extended by org.echarts.monitor.PrintStreamMonitor
All Implemented Interfaces:
MachineMonitor

public class PrintStreamMonitor
extends java.lang.Object
implements MachineMonitor

Event monitor for printing a filtered stream of monitor events to a specified print stream. Customized portrayal of events is possible by specifying a formatter.


Constructor Summary
PrintStreamMonitor()
           
PrintStreamMonitor(MachineMonitorEventFilter filter)
           
PrintStreamMonitor(MachineMonitorEventFilter filter, java.io.PrintStream stream, PrintStreamFormatter formatter)
           
PrintStreamMonitor(java.io.PrintStream stream)
           
PrintStreamMonitor(PrintStreamFormatter formatter)
           
 
Method Summary
 MachineMonitorEventFilter getEventFilter()
           
 PrintStreamFormatter getFormatter()
           
 java.io.PrintStream getPrintStream()
           
 void putEvent(MachineMonitorEvent event)
           
 void setEventFilter(MachineMonitorEventFilter filter)
           
 void setFormatter(PrintStreamFormatter formatter)
           
 void setPrintStream(java.io.PrintStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamMonitor

public PrintStreamMonitor()

PrintStreamMonitor

public PrintStreamMonitor(MachineMonitorEventFilter filter)

PrintStreamMonitor

public PrintStreamMonitor(MachineMonitorEventFilter filter,
                          java.io.PrintStream stream,
                          PrintStreamFormatter formatter)

PrintStreamMonitor

public PrintStreamMonitor(java.io.PrintStream stream)

PrintStreamMonitor

public PrintStreamMonitor(PrintStreamFormatter formatter)
Method Detail

putEvent

public void putEvent(MachineMonitorEvent event)
Specified by:
putEvent in interface MachineMonitor

setEventFilter

public void setEventFilter(MachineMonitorEventFilter filter)
Specified by:
setEventFilter in interface MachineMonitor

getEventFilter

public MachineMonitorEventFilter getEventFilter()
Specified by:
getEventFilter in interface MachineMonitor

setPrintStream

public void setPrintStream(java.io.PrintStream stream)

getPrintStream

public java.io.PrintStream getPrintStream()

setFormatter

public void setFormatter(PrintStreamFormatter formatter)

getFormatter

public PrintStreamFormatter getFormatter()