org.echarts.monitor
Class LoggerMonitor

java.lang.Object
  extended by 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.


Constructor Summary
LoggerMonitor()
           
LoggerMonitor(java.util.logging.Logger logger)
           
LoggerMonitor(MachineMonitorEventFilter filter)
           
LoggerMonitor(MachineMonitorEventFilter filter, java.util.logging.Logger logger, PrintStreamFormatter formatter)
           
LoggerMonitor(PrintStreamFormatter formatter)
           
 
Method Summary
 MachineMonitorEventFilter getEventFilter()
           
 PrintStreamFormatter getFormatter()
           
 java.util.logging.Logger getLogger()
           
 void putEvent(MachineMonitorEvent event)
           
 void setEventFilter(MachineMonitorEventFilter filter)
           
 void setFormatter(PrintStreamFormatter formatter)
           
 void setLogger(java.util.logging.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
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

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()