|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.util.CallStatistics
Summarizes invocations of a specific method.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
CallStatistics(org.w3c.dom.Element e)
Create a call statistics object by parsing its XML representation. |
Method Summary | |
static CallStatistics |
getCallStatistics(java.lang.String methodName)
Factory method |
java.lang.String |
getElementName()
Return the element name. |
long |
getMaxTime()
What was the greatest amount of time this method ever took? Note: returnCall made not be called by the time this is called. |
java.lang.String |
getMethodName()
With which method are these statistics associated? |
long |
getMinTime()
What was the least amount of time this method ever took? Note: returnCall made not be called by the time this is called. |
long |
getTotalCalls()
How many times has this method been called? |
long |
getTotalErrors()
How many times has this method failed to complete? |
long |
getTotalTime()
What was the least amount of time this method ever took? |
void |
recordReturn(long elapsedTime,
boolean isError)
|
void |
reset()
|
java.lang.String |
toString()
|
java.lang.String |
toString(boolean verbose)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize the call statistics object to an XML string buffer. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
Constructor Detail |
public CallStatistics(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public java.lang.String getMethodName()
public long getTotalCalls()
public long getTotalErrors()
public long getTotalTime()
public long getMinTime()
public long getMaxTime()
public static CallStatistics getCallStatistics(java.lang.String methodName)
public java.lang.String toString()
public java.lang.String toString(boolean verbose)
public void reset()
public void recordReturn(long elapsedTime, boolean isError)
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void toXml(java.lang.StringBuffer b, int indent)
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |