org.echarts.monitor
Class NullMonitor

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

public final class NullMonitor
extends java.lang.Object
implements MachineMonitor

Class that serves as a dummy user monitor when user hasn't explicitly set the monitor for an FSM (via the setMonitor() method). This class implements the putEvent() method and simply throws away events.


Field Summary
static NullMonitor NULL_MONITOR
           
 
Constructor Summary
NullMonitor()
           
 
Method Summary
 MachineMonitorEventFilter getEventFilter()
           
 void putEvent(MachineMonitorEvent event)
           
 void setEventFilter(MachineMonitorEventFilter filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_MONITOR

public static final NullMonitor NULL_MONITOR
Constructor Detail

NullMonitor

public NullMonitor()
Method Detail

putEvent

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

setEventFilter

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

getEventFilter

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