Class ActionServiceMonitor

java.lang.Object
org.alfresco.repo.action.ActionServiceMonitor

public class ActionServiceMonitor extends Object
Responsible for monitoring running actions and accumulating statistics on actions that have been run.
Author:
Alex Miller
  • Constructor Details

    • ActionServiceMonitor

      public ActionServiceMonitor()
  • Method Details

    • actionStarted

      public RunningAction actionStarted(Action action)
      Called by the ActionServiceImpl when an action is started. Adds the action to the list of currently running actions.
      Parameters:
      action - The action being started
      Returns:
      A RunningAction object used to track the status of the running action.
    • actionCompleted

      public void actionCompleted(RunningAction action)
      Called by the ActionServiceImpl when sn action completes. Removes the actions from the list of currently running actions, and updated the accumulated statistics for that action.
      Parameters:
      action - The RunningAction object returned by actionStatred.
    • getRunningActions

      public List<RunningAction> getRunningActions()
      Returns:
      The list of currently running actions.
    • getRunningActionCount

      public int getRunningActionCount()
      Returns:
      a count of the currently running actions
    • getActionStatisitcs

      public List<ActionStatistics> getActionStatisitcs()
      Returns:
      a list of the accumulated action statistics.