Package org.alfresco.repo.action
Class ActionStatistics
java.lang.Object
org.alfresco.repo.action.ActionStatistics
Responsible for accumulating and providing statistics on the invocations of a particualr action.
- Author:
- Alex Miller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAction(RunningAction action) Accumulate statistics from action.longlonglong
-
Constructor Details
-
ActionStatistics
- Parameters:
actionName- The name of the action this object will provide statistics for.
-
-
Method Details
-
addAction
Accumulate statistics from action. -
getActionName
- Returns:
- The name of the actions this object has statistics for
-
getInvocationCount
public long getInvocationCount()- Returns:
- The number of times the action has been invoked
-
getErrorCount
public long getErrorCount()- Returns:
- The number of time the invocation of this action has resulted in an exception
-
getAverageTime
public long getAverageTime()- Returns:
- The average time for the invocation of this action
-