| |
|
| java.lang.Object org.jboss.invocation.InvocationStatistics
InvocationStatistics | public class InvocationStatistics implements Serializable(Code) | | A method invocation statistics collection class.
author: Scott.Stark@jboss.org version: $Revision: 61830 $ |
Inner Class :public class TimeStatistic implements Serializable | |
Method Summary | |
public synchronized void | callIn() | public synchronized void | callOut() | public Map | getStats() | public void | resetStats() Resets all current TimeStatistics. | public String | toString() Generate an XML fragement for the InvocationStatistics. | public void | updateStats(Method m, long elapsed) Update the TimeStatistic for the given method. |
concurrentCalls | public long concurrentCalls(Code) | | |
lastResetTime | public long lastResetTime(Code) | | |
maxConcurrentCalls | public long maxConcurrentCalls(Code) | | |
InvocationStatistics | public InvocationStatistics()(Code) | | |
callIn | public synchronized void callIn()(Code) | | |
callOut | public synchronized void callOut()(Code) | | |
getStats | public Map getStats()(Code) | | Access the current collection of method invocation statistics
A HashMap of the method invocations |
resetStats | public void resetStats()(Code) | | Resets all current TimeStatistics.
|
toString | public String toString()(Code) | | Generate an XML fragement for the InvocationStatistics. The format is
...
an XML representation of the InvocationStatistics |
updateStats | public void updateStats(Method m, long elapsed)(Code) | | Update the TimeStatistic for the given method. This synchronizes on
m to ensure that the TimeStatistic for m is updated atomically.
Parameters: m - the method to update the statistics for. Parameters: elapsed - the elapsed time in milliseconds for the invocation. |
|
|
|