etm.core.monitor
Class FlatMonitor

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

public class FlatMonitor
extends EtmMonitorSupport

The FlatMonitor records all measurement points separately even if they are nested.

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

Field Summary
 
Fields inherited from class etm.core.monitor.EtmMonitorSupport
aggregator, description, plugins, timer
 
Constructor Summary
FlatMonitor()
           
FlatMonitor(Aggregator aAggregator)
           
FlatMonitor(ExecutionTimer aTimer)
          Creates a new flat monitor instance.
FlatMonitor(ExecutionTimer aTimer, Aggregator aAggregator)
           
 
Method Summary
protected  void doVisitPostCollect(MeasurementPoint aPoint)
          

Callback method for derived classes.

protected  void doVisitPreMeasurement(MeasurementPoint measurementPoint)
          

Callback method for derived classes.

 java.lang.String toString()
           
 
Methods inherited from class etm.core.monitor.EtmMonitorSupport
addPlugin, aggregate, createPoint, disableCollection, enableCollection, getDefaultAggregator, getMetaData, isCollecting, isStarted, onStateLoaded, render, 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

FlatMonitor

public FlatMonitor()

FlatMonitor

public FlatMonitor(ExecutionTimer aTimer)
Creates a new flat monitor instance.

Parameters:
aTimer - The timer to use.

FlatMonitor

public FlatMonitor(Aggregator aAggregator)

FlatMonitor

public FlatMonitor(ExecutionTimer aTimer,
                   Aggregator aAggregator)
Method Detail

doVisitPreMeasurement

protected void doVisitPreMeasurement(MeasurementPoint measurementPoint)
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:
measurementPoint - 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.

toString

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


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