Class ActionServiceMonitor


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

      • ActionServiceMonitor

        public ActionServiceMonitor()
    • Method Detail

      • 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 java.util.List<RunningAction> getRunningActions()
        Returns:
        The list of currently running actions.
      • getRunningActionCount

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

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