etm.core.monitor
Class NullMonitor

java.lang.Object
  extended by etm.core.monitor.EtmMonitorSupport
      extended by etm.core.monitor.NullMonitor
All Implemented Interfaces:
EtmMonitor, AggregationStateListener, EtmMonitorListener

public class NullMonitor
extends EtmMonitorSupport

The NullMonitor does nothing and this way may limit the overhead in a production environment.

Version:
$Revision: 204 $
Author:
void.fm

Field Summary
 
Fields inherited from class etm.core.monitor.EtmMonitorSupport
aggregator, description, plugins, timer
 
Constructor Summary
NullMonitor()
           
 
Method Summary
protected  void doVisitPostCollect(MeasurementPoint aPoint)
          

Callback method for derived classes.

protected  void doVisitPreMeasurement(MeasurementPoint aMeasurementPoint)
          

Callback method for derived classes.

protected  Aggregator getDefaultAggregator()
           
 void render(MeasurementRenderer renderer)
          Renders the current measurement results.
 java.lang.String toString()
           
 
Methods inherited from class etm.core.monitor.EtmMonitorSupport
addPlugin, aggregate, createPoint, disableCollection, enableCollection, getMetaData, isCollecting, isStarted, onStateLoaded, reset, reset, setPlugins, shutdownPlugins, start, startPlugins, stop, visitPostCollect, visitPreMeasurement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullMonitor

public NullMonitor()
Method Detail

doVisitPreMeasurement

protected void doVisitPreMeasurement(MeasurementPoint aMeasurementPoint)
Description copied from class: EtmMonitorSupport

Callback method for derived classes.

This method is called immediately after the measurement point was created. Note that neither MeasurementPoint.getTicks() nor MeasurementPoint.getStartTime() are set at that point.

Specified by:
doVisitPreMeasurement in class EtmMonitorSupport
Parameters:
aMeasurementPoint - The measurement point just created.

doVisitPostCollect

protected void doVisitPostCollect(MeasurementPoint aPoint)
Description copied from class: EtmMonitorSupport

Callback method for derived classes.

This method is called immediately after the measurement point was collected and marked as closed. At that point the all required information are valid for that measurement point.

Specified by:
doVisitPostCollect in class EtmMonitorSupport
Parameters:
aPoint - The point to collect.

render

public void render(MeasurementRenderer renderer)
Description copied from interface: EtmMonitor
Renders the current measurement results.

Specified by:
render in interface EtmMonitor
Overrides:
render in class EtmMonitorSupport
Parameters:
renderer - A measurement renderer.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDefaultAggregator

protected Aggregator getDefaultAggregator()
Overrides:
getDefaultAggregator in class EtmMonitorSupport


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.