Package org.alfresco.repo.action
Class ActionServiceMonitor
java.lang.Object
org.alfresco.repo.action.ActionServiceMonitor
Responsible for monitoring running actions and accumulating statistics on actions that have been run.
- Author:
- Alex Miller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionCompleted(RunningAction action) Called by theActionServiceImplwhen sn action completes.actionStarted(Action action) Called by theActionServiceImplwhen an action is started.int
-
Constructor Details
-
ActionServiceMonitor
public ActionServiceMonitor()
-
-
Method Details
-
actionStarted
Called by theActionServiceImplwhen an action is started. Adds the action to the list of currently running actions.- Parameters:
action- The action being started- Returns:
- A
RunningActionobject used to track the status of the running action.
-
actionCompleted
Called by theActionServiceImplwhen sn action completes. Removes the actions from the list of currently running actions, and updated the accumulated statistics for that action.- Parameters:
action- TheRunningActionobject returned by actionStatred.
-
getRunningActions
- Returns:
- The list of currently running actions.
-
getRunningActionCount
public int getRunningActionCount()- Returns:
- a count of the currently running actions
-
getActionStatisitcs
- Returns:
- a list of the accumulated action statistics.
-