atg.service.perfmonitor
Class PerformanceData

java.lang.Object
  extended by atg.service.perfmonitor.PerformanceData
All Implemented Interfaces:
Resetable

public class PerformanceData
extends java.lang.Object
implements Resetable

This object contains the values for minimum, maximum, total executions, and total execution time for an operation. When an operation completes, the total execution time is determined and passed to this object. The increaseTotalExecutionTime method is called with the time in milliseconds passed as the argument. Based on this information, the properties of this object are updated.

The properties of this object are definied as follows:


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
PerformanceData()
          Constructs a PerformanceData object.
 
Method Summary
 long getAverageExecutionTime()
          Returns property averageExecutionTime
 double getAverageMemoryRequired()
          Returns property averageMemoryRequired
 long getMaximumExecutionTime()
          Returns property maximumExecutionTime
 double getMaximumMemoryRequired()
          Returns property maximumMemoryRequired
 long getMemTotalNumberOfExecutions()
          Returns property memTotalNumberOfExecutions
 long getMinimumExecutionTime()
          Returns property minimumExecutionTime
 double getMinimumMemoryRequired()
          Returns property minimumMemoryRequired
 long getTotalExecutionTime()
          Returns property totalExecutionTime
 double getTotalMemoryRequired()
          Returns property totalMemoryRequired
 long getTotalNumberOfExecutions()
          Returns property totalNumberOfExecutions
 void increaseTotalExecutionTime(long pTime)
          Increases the totalExecutionTime by the amount in pTime.
 void increaseTotalMemoryRequired(double pMemory)
          Increases the totalMemoryRequired by the amount in pMemory.
 void reset()
          Resets the properties of this object back to their defaults
 void resetMemoryData()
          Resets the properties of this object back to their defaults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

PerformanceData

public PerformanceData()
Constructs a PerformanceData object.

Method Detail

increaseTotalExecutionTime

public void increaseTotalExecutionTime(long pTime)
Increases the totalExecutionTime by the amount in pTime. Also increments the totalNumberOfExecutions by 1 and updates the minimumExecutionTime and maximumExecutionTime if necessary.

Parameters:
pTime - the amount to increment mTotalExecutionTime by.

increaseTotalMemoryRequired

public void increaseTotalMemoryRequired(double pMemory)
Increases the totalMemoryRequired by the amount in pMemory. Also updates the minimumMemoryRequired and maximumMemoryRequired if necessary.

Parameters:
pMemory - the amount to increment mTotalMemoryRequired by.

reset

public void reset()
Resets the properties of this object back to their defaults

Specified by:
reset in interface Resetable

resetMemoryData

public void resetMemoryData()
Resets the properties of this object back to their defaults


getMinimumExecutionTime

public long getMinimumExecutionTime()
Returns property minimumExecutionTime


getMaximumExecutionTime

public long getMaximumExecutionTime()
Returns property maximumExecutionTime


getTotalNumberOfExecutions

public long getTotalNumberOfExecutions()
Returns property totalNumberOfExecutions


getTotalExecutionTime

public long getTotalExecutionTime()
Returns property totalExecutionTime


getAverageExecutionTime

public long getAverageExecutionTime()
Returns property averageExecutionTime


getMemTotalNumberOfExecutions

public long getMemTotalNumberOfExecutions()
Returns property memTotalNumberOfExecutions


getMinimumMemoryRequired

public double getMinimumMemoryRequired()
Returns property minimumMemoryRequired


getMaximumMemoryRequired

public double getMaximumMemoryRequired()
Returns property maximumMemoryRequired


getTotalMemoryRequired

public double getTotalMemoryRequired()
Returns property totalMemoryRequired


getAverageMemoryRequired

public double getAverageMemoryRequired()
Returns property averageMemoryRequired