|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.service.perfmonitor.PerformanceStackData
public class PerformanceStackData
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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PerformanceStackData()
public PerformanceStackData(java.lang.String pOperation, java.lang.String pParameter)
Method Detail |
---|
public void markStartTime()
public void markFreeMemory()
public void increaseStartTime(long pIncreaseTime)
public void decreaseFreeMemory(double pDecreaseMemory)
public void reset()
reset
in interface Resetable
public void setOperation(java.lang.String pOperation)
public java.lang.String getOperation()
public void setParameter(java.lang.String pParameter)
public java.lang.String getParameter()
public long getStartTime()
public double getFreeMemory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |