etm.core.monitor
Interface EtmPoint

All Known Implementing Classes:
MeasurementPoint

public interface EtmPoint

The EtmPoint represents one measurement.

Usage example:

  EtmMonitor monitor = ...;
  EtmPoint point = monitor.createPoint("name");
  try {
 

// execute business code

} finally { point.collect(); }

Since:
1.2.0
Version:
$Revision: 249 $
Author:
void.fm

Method Summary
 void alterName(java.lang.String newName)
          Alters the name of the measurement point.
 void collect()
          Marks the current measurement as finished.
 long getEndTime()
          Returns the end time of the measurement in the ExecutionTimer dependend precision.
 java.lang.String getName()
          Returns the name of the measurement point.
 EtmPoint getParent()
          Returns the parent of this measurement point.
 long getStartTime()
          Returns the start time of the measurement in the ExecutionTimer dependend precision.
 long getStartTimeMillis()
          Returns the time the measurement was startet.
 long getTicks()
          Returns the number of ticks per milisecond as provided by the used ExecutionTimer.
 double getTransactionTime()
          Returns the calculated processing time in miliseconds.
 

Method Detail

collect

void collect()
Marks the current measurement as finished.

Throws:
java.lang.IllegalStateException - Thrown in case the name of the measurement point is null.

alterName

void alterName(java.lang.String newName)
Alters the name of the measurement point. This may be usefull for executions where the outcome of an operation may change the scope of the measurement, e.g. an Exception.

Parameters:
newName - The new name of the measurement point.

getName

java.lang.String getName()
Returns the name of the measurement point.

Returns:
The name.

getStartTime

long getStartTime()
Returns the start time of the measurement in the ExecutionTimer dependend precision.

Returns:
The start time.
See Also:
getTicks()

getEndTime

long getEndTime()
Returns the end time of the measurement in the ExecutionTimer dependend precision.

Returns:
The end time.
See Also:
getTicks()

getTicks

long getTicks()
Returns the number of ticks per milisecond as provided by the used ExecutionTimer.

Returns:
The number of ticks.

getParent

EtmPoint getParent()
Returns the parent of this measurement point.

Returns:
The parent, may be null.

getTransactionTime

double getTransactionTime()
Returns the calculated processing time in miliseconds.

Returns:
The processing time.

getStartTimeMillis

long getStartTimeMillis()
Returns the time the measurement was startet.

Returns:
The time taken using System.currentTimeMillis


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