org.echarts.monitor
Class LoggerMonitor
java.lang.Object
org.echarts.monitor.LoggerMonitor
- All Implemented Interfaces:
- MachineMonitor
- Direct Known Subclasses:
- LoggerMonitor
public class LoggerMonitor
- extends java.lang.Object
- implements MachineMonitor
Event monitor for printing a filtered stream of monitor events to a
specified java.util.logging.Logger. 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 |
LoggerMonitor
public LoggerMonitor(MachineMonitorEventFilter filter,
java.util.logging.Logger logger,
PrintStreamFormatter formatter)
LoggerMonitor
public LoggerMonitor()
LoggerMonitor
public LoggerMonitor(MachineMonitorEventFilter filter)
LoggerMonitor
public LoggerMonitor(java.util.logging.Logger logger)
LoggerMonitor
public LoggerMonitor(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
setLogger
public void setLogger(java.util.logging.Logger logger)
getLogger
public java.util.logging.Logger getLogger()
setFormatter
public void setFormatter(PrintStreamFormatter formatter)
getFormatter
public PrintStreamFormatter getFormatter()