com.waveset.util
Class CallStatistics

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.waveset.util.CallStatistics
All Implemented Interfaces:
javax.naming.Referenceable, XmlObject

public class CallStatistics
extends AbstractXmlObject

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

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values
Constructor Detail

CallStatistics

public CallStatistics(org.w3c.dom.Element e)
               throws WavesetException
Create a call statistics object by parsing its XML representation.

Method Detail

getMethodName

public java.lang.String getMethodName()
With which method are these statistics associated?


getTotalCalls

public long getTotalCalls()
How many times has this method been called?


getTotalErrors

public long getTotalErrors()
How many times has this method failed to complete?


getTotalTime

public long getTotalTime()
What was the least amount of time this method ever took?


getMinTime

public 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.


getMaxTime

public 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.


getCallStatistics

public static CallStatistics getCallStatistics(java.lang.String methodName)
Factory method


toString

public java.lang.String toString()

toString

public java.lang.String toString(boolean verbose)

reset

public void reset()

recordReturn

public void recordReturn(long elapsedTime,
                         boolean isError)

getElementName

public java.lang.String getElementName()
Description copied from class: AbstractXmlObject
Return the element name.

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Serialize the call statistics object to an XML string buffer.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject