Class SubTaskTimeInQueueAction

java.lang.Object
jenkins.metrics.impl.SubTaskTimeInQueueAction
All Implemented Interfaces:
Action, ModelObject, Serializable

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class SubTaskTimeInQueueAction extends Object implements Serializable, Action
Tracks the time occupied by subtasks.
See Also:
  • Constructor Details

    • SubTaskTimeInQueueAction

      public SubTaskTimeInQueueAction(long queuingDurationMillis, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis, long executingDurationMillis, int workUnitCount)
      Constructor
      Parameters:
      queuingDurationMillis - How long spent queuing.
  • Method Details

    • getQueuingDurationMillis

      public long getQueuingDurationMillis()
      How long spent queuing (this is the time from when the WorkUnitContext.item entered the queue until WorkUnitContext.synchronizeStart() was called.
    • getBlockedDurationMillis

      public long getBlockedDurationMillis()
      Returns the duration this SubTask spent in the queue because it was blocked.
      Returns:
      the duration this SubTask spent in the queue because it was blocked.
    • getBuildableDurationMillis

      public long getBuildableDurationMillis()
      Returns the duration this SubTask spent in the queue in a buildable state.
      Returns:
      the duration this SubTask spent in the queue in a buildable state.
    • getWaitingDurationMillis

      public long getWaitingDurationMillis()
      Returns the duration this SubTask spent in the queue waiting before it could be considered for execution.
      Returns:
      the duration this SubTask spent in the queue waiting before it could be considered for execution.
    • getExecutingDurationMillis

      public long getExecutingDurationMillis()
      Returns the duration this SubTask spent executing.
      Returns:
      the duration this SubTask spent executing.
    • getWorkUnitCount

      public int getWorkUnitCount()
      Returns the number of executor slots occupied by this SubTask.
      Returns:
      the number of executor slots occupied by this SubTask.
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action