org.alfresco.util.resource
Class MethodResourceManager.MethodStatistics

java.lang.Object
  extended by org.alfresco.util.resource.MethodResourceManager.MethodStatistics
Enclosing interface:
MethodResourceManager

public static class MethodResourceManager.MethodStatistics
extends java.lang.Object

Helper class to carry basic method call statistics.


Constructor Summary
MethodResourceManager.MethodStatistics()
           
 
Method Summary
 void accumulateNs(long durationNs)
           
 long getAccumulatedTimeNs()
           
 double getAverageCallTimeNs()
           
 long getCallCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodResourceManager.MethodStatistics

public MethodResourceManager.MethodStatistics()
Method Detail

accumulateNs

public void accumulateNs(long durationNs)

getAccumulatedTimeNs

public long getAccumulatedTimeNs()

getCallCount

public long getCallCount()

getAverageCallTimeNs

public double getAverageCallTimeNs()
Returns:
Returns the average call time in nanoseconds


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.