jrunx.instrument
Class MethodInstrumentationResult
java.lang.Object
|
+--jrunx.instrument.MethodInstrumentationResult
- All Implemented Interfaces:
- java.io.Serializable
- public class MethodInstrumentationResult
- extends java.lang.Object
- implements java.io.Serializable
Holder for the method instrumentation results. This class is used
by the ResultThread logger. Since there can be only one thread
accessing this object at any given time it does not need to
be synchronized.
- See Also:
- Serialized Form
|
Constructor Summary |
MethodInstrumentationResult(java.lang.String className,
int classHashcode,
java.lang.String methodName,
java.lang.String methodType,
java.lang.String callClassName,
java.lang.String callMethodName,
java.lang.String callMethodType,
int lineNo)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInstrumentationResult
public MethodInstrumentationResult(java.lang.String className,
int classHashcode,
java.lang.String methodName,
java.lang.String methodType,
java.lang.String callClassName,
java.lang.String callMethodName,
java.lang.String callMethodType,
int lineNo)
getClassName
public java.lang.String getClassName()
getClassHashcode
public int getClassHashcode()
getMethodName
public java.lang.String getMethodName()
getMethodType
public java.lang.String getMethodType()
getCallClassName
public java.lang.String getCallClassName()
getCallMethodName
public java.lang.String getCallMethodName()
getCallMethodType
public java.lang.String getCallMethodType()
getLineNo
public int getLineNo()
incrementCount
public int incrementCount()
- Increments the hit count by 1
- Returns:
- The new hit count
getCount
public int getCount()
- Gets the hit count
- Returns:
- The hit count
incrementElapsedTime
public long incrementElapsedTime(long elapsed)
- Increments the elapsed accumulator by the given amount
- Parameters:
elapsed - The inrement amount- Returns:
- The new accumulated elapsed time
getElapsedTime
public long getElapsedTime()
- Gets the current accumulated elapsed time
- Returns:
- The accumulated elapsed time
getKey
public java.lang.String getKey()
getKey
public static java.lang.String getKey(java.lang.String className,
int classHashcode,
java.lang.String methodName,
java.lang.String methodType,
java.lang.String callClassName,
java.lang.String callMethodName,
java.lang.String callMethodType,
int lineNo)
Copyright � 2002 Macromedia Corporation. All Rights Reserved.