org.echarts.monitor
Class PrintStreamMonitor
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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()