atg.service.perfmonitor
Class PerformanceHashtable

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by atg.service.perfmonitor.PerformanceHashtable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class PerformanceHashtable
extends java.util.Hashtable

This class stores the performance objects for operations. Also, it stores the totals for all the parameterized operations stored within the hash.

When endOperation is called, it gets the PerformanceStackData object. Some calculations are performed and then the totals are put into a PerformanceData object which is stored into this hashtable. The totals from this object are also added to the PerformanceData object contained within this object.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
PerformanceHashtable()
          Constructs a PerformanceStack object.
PerformanceHashtable(int initialCapacity)
          Constructs a PerformanceStack object.
PerformanceHashtable(int initialCapacity, float loadFactor)
          Constructs a PerformanceStack object.
 
Method Summary
 PerformanceData getPerformanceTotals()
          Returns property totals
 void increaseTotalExecutionTime(long pTime)
          Increases the totalExecutionTime in the global PerformanceData object by the amount in pTime.
 void increaseTotalMemoryRequired(double pMemory)
          Increases the totalMemoryRequired in the global PerformanceData object by the amount in pMemory.
 void reset()
          Resets the properties of all the PerformanceData objects contained within the hashtable.
 void resetMemoryData()
          Resets the memory properties of all the PerformanceData objects contained within the hashtable.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

PerformanceHashtable

public PerformanceHashtable()
Constructs a PerformanceStack object.


PerformanceHashtable

public PerformanceHashtable(int initialCapacity)
Constructs a PerformanceStack object.


PerformanceHashtable

public PerformanceHashtable(int initialCapacity,
                            float loadFactor)
Constructs a PerformanceStack object.

Method Detail

increaseTotalExecutionTime

public void increaseTotalExecutionTime(long pTime)
Increases the totalExecutionTime in the global PerformanceData object 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 totalExecutionTime by.

increaseTotalMemoryRequired

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

Parameters:
pMemory - the amount to increment totalMemoryRequired by.

reset

public void reset()
Resets the properties of all the PerformanceData objects contained within the hashtable. Also resets the global PerformanceData object.


resetMemoryData

public void resetMemoryData()
Resets the memory properties of all the PerformanceData objects contained within the hashtable. Also resets the memory properties of the global PerformanceData object.


getPerformanceTotals

public PerformanceData getPerformanceTotals()
Returns property totals