atg.service.perfmonitor
Class PerformanceStackData

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

public class PerformanceStackData
extends java.lang.Object
implements Resetable

This class represents an operation, possibly parameterized, during runtime. It contains the name of an operation, an optional parameter, and the start time. The optional parameter should be the object that the given operation is operating on. The start time is stored in milliseconds since Jan 1, 1970.

When startOperation is called in PerformanceMonitor, an object of this type is retrieved from the pool, populated, and added to the mThreadStackHash table in the PerformanceMonitor. When endOperation is called, it is popped off the stack and its start time is used to determine stats for the specified operation.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
PerformanceStackData()
          Constructs a PerformanceStackData object with the given operation.
PerformanceStackData(java.lang.String pOperation, java.lang.String pParameter)
          Constructs a PerformanceStackData object with the given operation.
 
Method Summary
 void decreaseFreeMemory(double pDecreaseMemory)
          Increases the free memory by the given value
 double getFreeMemory()
          Returns property freeMemory
 java.lang.String getOperation()
          Returns property operation
 java.lang.String getParameter()
          Returns property parameter
 long getStartTime()
          Returns property startTime
 void increaseStartTime(long pIncreaseTime)
          Increases start time by the given value
 void markFreeMemory()
          Gets the freeMemory size
 void markStartTime()
          Sets the start time of this operation.
 void reset()
          Resets the properties of this object back to their defaults
 void setOperation(java.lang.String pOperation)
          Sets property operation
 void setParameter(java.lang.String pParameter)
          Sets property parameter
 
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

PerformanceStackData

public PerformanceStackData()
Constructs a PerformanceStackData object with the given operation.


PerformanceStackData

public PerformanceStackData(java.lang.String pOperation,
                            java.lang.String pParameter)
Constructs a PerformanceStackData object with the given operation.

Method Detail

markStartTime

public void markStartTime()
Sets the start time of this operation.


markFreeMemory

public void markFreeMemory()
Gets the freeMemory size


increaseStartTime

public void increaseStartTime(long pIncreaseTime)
Increases start time by the given value


decreaseFreeMemory

public void decreaseFreeMemory(double pDecreaseMemory)
Increases the free memory by the given value


reset

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

Specified by:
reset in interface Resetable

setOperation

public void setOperation(java.lang.String pOperation)
Sets property operation


getOperation

public java.lang.String getOperation()
Returns property operation


setParameter

public void setParameter(java.lang.String pParameter)
Sets property parameter


getParameter

public java.lang.String getParameter()
Returns property parameter


getStartTime

public long getStartTime()
Returns property startTime


getFreeMemory

public double getFreeMemory()
Returns property freeMemory