etm.core.monitor
Class MeasurementPoint

java.lang.Object
  extended by etm.core.monitor.MeasurementPoint
All Implemented Interfaces:
EtmPoint

Deprecated. Please use EtmMonitor.createPoint(String) instead. Will be made package visible with JETM 2.0.0.

public class MeasurementPoint
extends java.lang.Object
implements EtmPoint

The MeasurementPoint represents one measurement.

Usage example:

  EtmMonitor monitor = ...;
  MeasurementPoint point = new MeasurementPoint(monitor, "name");
  try {
 

// execute business code

} finally { point.collect(); }

Version:
$Revision: 249 $
Author:
void.fm
See Also:
EtmMonitor

Constructor Summary
MeasurementPoint(EtmMonitor aMonitor, java.lang.String aName)
          Deprecated. Creates a new measurement point using the given monitor and name.
 
Method Summary
 void alterName(java.lang.String newName)
          Deprecated. Alters the name of the measurement point.
 void collect()
          Deprecated. Marks the current measurement as finished.
 long getEndTime()
          Deprecated. Returns the end time of the measurement in the ExecutionTimer dependend precision.
 java.lang.String getName()
          Deprecated. Returns the name of the measurement point.
 EtmPoint getParent()
          Deprecated. Returns the parent of this measurement point.
 long getStartTime()
          Deprecated. Returns the start time of the measurement in the ExecutionTimer dependend precision.
 long getStartTimeMillis()
          Deprecated. Returns the time the measurement was startet.
 long getTicks()
          Deprecated. Returns the number of ticks per milisecond as provided by the used ExecutionTimer.
 double getTransactionTime()
          Deprecated. Returns the calculated processing time in miliseconds.
protected  void setEndTime(long aEndTime)
          Deprecated. Sets the end time of the measurement.
protected  void setParent(MeasurementPoint aParent)
          Deprecated. Sets a parent measurement point.
protected  void setStartTime(long aStartTime)
          Deprecated. Sets the start time of the measurement.
protected  void setTicks(long aTicks)
          Deprecated. Sets the number of ticks per millsecond.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementPoint

public MeasurementPoint(EtmMonitor aMonitor,
                        java.lang.String aName)
Deprecated. 
Creates a new measurement point using the given monitor and name.

Parameters:
aMonitor - The monitor to be associated with.
aName - The name of this measurement point, may be null at construction time. In this case you may need to set the name using alterName(String) before calling collect().
Method Detail

collect

public void collect()
Deprecated. 
Description copied from interface: EtmPoint
Marks the current measurement as finished.

Specified by:
collect in interface EtmPoint

alterName

public void alterName(java.lang.String newName)
Deprecated. 
Description copied from interface: EtmPoint
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.

Specified by:
alterName in interface EtmPoint
Parameters:
newName - The new name of the measurement point.

getName

public java.lang.String getName()
Deprecated. 
Description copied from interface: EtmPoint
Returns the name of the measurement point.

Specified by:
getName in interface EtmPoint
Returns:
The name.

getStartTime

public long getStartTime()
Deprecated. 
Description copied from interface: EtmPoint
Returns the start time of the measurement in the ExecutionTimer dependend precision.

Specified by:
getStartTime in interface EtmPoint
Returns:
The start time.
See Also:
EtmPoint.getTicks()

getEndTime

public long getEndTime()
Deprecated. 
Description copied from interface: EtmPoint
Returns the end time of the measurement in the ExecutionTimer dependend precision.

Specified by:
getEndTime in interface EtmPoint
Returns:
The end time.
See Also:
EtmPoint.getTicks()

getTicks

public long getTicks()
Deprecated. 
Description copied from interface: EtmPoint
Returns the number of ticks per milisecond as provided by the used ExecutionTimer.

Specified by:
getTicks in interface EtmPoint
Returns:
The number of ticks.

setParent

protected void setParent(MeasurementPoint aParent)
Deprecated. 
Sets a parent measurement point.

Parameters:
aParent - The parent.

getParent

public EtmPoint getParent()
Deprecated. 
Description copied from interface: EtmPoint
Returns the parent of this measurement point.

Specified by:
getParent in interface EtmPoint
Returns:
The parent, may be null.

setStartTime

protected void setStartTime(long aStartTime)
Deprecated. 
Sets the start time of the measurement.

Parameters:
aStartTime - The start time.

setEndTime

protected void setEndTime(long aEndTime)
Deprecated. 
Sets the end time of the measurement.

Parameters:
aEndTime - The end time.

setTicks

protected void setTicks(long aTicks)
Deprecated. 
Sets the number of ticks per millsecond.

Parameters:
aTicks - The number of ticks.

getTransactionTime

public double getTransactionTime()
Deprecated. 
Description copied from interface: EtmPoint
Returns the calculated processing time in miliseconds.

Specified by:
getTransactionTime in interface EtmPoint
Returns:
The processing time.

getStartTimeMillis

public long getStartTimeMillis()
Deprecated. 
Description copied from interface: EtmPoint
Returns the time the measurement was startet.

Specified by:
getStartTimeMillis in interface EtmPoint
Returns:
The time taken using System.currentTimeMillis

toString

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


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