当前页面: 
在线文档首页 > 
JBoss 3.2.7 server  API Documentation 英文版文档
InvocationStatistics (JBoss Server API) - JBoss 3.2.7 server  API Documentation 英文版文档
org.jboss.invocation
Class InvocationStatistics
java.lang.Object
   org.jboss.invocation.InvocationStatistics
org.jboss.invocation.InvocationStatistics
- All Implemented Interfaces: 
- Serializable
- public class InvocationStatistics- extends Object- implements Serializable
A method invocation statistics collection class.
- Version:
- $Revision: 1.1.2.4 $
- Author:
- Scott.Stark@jboss.org
- See Also:
- Serialized Form
 
 
 
| Method Summary | 
|  void | callIn()
 | 
|  void | callOut()
 | 
|  Map | getStats()Access the current collection of method invocation statistics
 | 
|  void | resetStats()Resets all current TimeStatistics.
 | 
|  String | toString()Generate an XML fragement for the InvocationStatistics.
 | 
|  void | updateStats(Method m,
            long elapsed)Update the TimeStatistic for the given method.
 | 
 
 
concurrentCalls
public long concurrentCalls
maxConcurrentCalls
public long maxConcurrentCalls
lastResetTime
public long lastResetTime
InvocationStatistics
public InvocationStatistics()
updateStats
public void updateStats(Method m,
                        long elapsed)
- Update the TimeStatistic for the given method.
 
- 
 
- 
- Parameters:
- m- the method to update the statistics for.
- elapsed- the elapsed time in milliseconds for the invocation.
 
callIn
public void callIn()
- 
 
- 
 
callOut
public void callOut()
- 
 
- 
 
resetStats
public void resetStats()
- Resets all current TimeStatistics.
 
- 
 
- 
 
getStats
public Map getStats()
- Access the current collection of method invocation statistics
 
- 
 
- 
- Returns:
- A HashMap of the method invocations
 
toString
public String toString()
- Generate an XML fragement for the InvocationStatistics. The format is
 
    
    ...
 
 
- 
 
- 
- Returns:
- an XML representation of the InvocationStatistics
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.