Package jenkins.metrics.impl
Class TimeInQueueAction
java.lang.Object
jenkins.metrics.impl.TimeInQueueAction
- All Implemented Interfaces:
Action,ModelObject,Serializable,RunAction2
Tracks the time spent in the queue
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeInQueueAction(long queuingDurationMillis) Deprecated.TimeInQueueAction(long millisecondsInQueue, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the duration thisRunspent in the queue because it was blocked.longlongReturns the duration thisRunspent in the queue in a buildable state.longlonglongReturns the duration thisRunspent building, that is the wall time from when it left the queue until it was finished.doublelongReturns the duration thisRunspent queuing, that is the wall time from when it entered the queue until it left the queue.longReturns the total time thisRunspent queuing, including the time spent by subtasks.getRun()intlongReturns total duration for thisRun, that is the wall time from when it entered the queue until it was finished.longReturns the duration thisRunspent in the queue waiting before it could be considered for execution.longbooleanvoidonAttached(Run<?, ?> r) void
-
Constructor Details
-
TimeInQueueAction
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Deprecated public TimeInQueueAction(long queuingDurationMillis) Deprecated.Constructor.- Parameters:
queuingDurationMillis- How long spent queuing.
-
TimeInQueueAction
public TimeInQueueAction(long millisecondsInQueue, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis) Constructor.- Parameters:
millisecondsInQueue- How long spent queuing.blockedDurationMillis- How long spent in the queue because blocked.buildableDurationMillis- How long spent in the queue while buildable.waitingDurationMillis- How long spent in the queue while waiting.
-
-
Method Details
-
getQueuingDurationMillis
@Exported(visibility=1) public long getQueuingDurationMillis()Returns the duration thisRunspent queuing, that is the wall time from when it entered the queue until it left the queue.- Returns:
- the duration this
Runspent queuing
-
getBlockedDurationMillis
@Exported(visibility=2) public long getBlockedDurationMillis()Returns the duration thisRunspent in the queue because it was blocked.- Returns:
- the duration this
Runspent in the queue because it was blocked.
-
getBuildableDurationMillis
@Exported(visibility=2) public long getBuildableDurationMillis()Returns the duration thisRunspent in the queue in a buildable state.- Returns:
- the duration this
Runspent in the queue in a buildable state.
-
getWaitingDurationMillis
@Exported(visibility=2) public long getWaitingDurationMillis()Returns the duration thisRunspent in the queue waiting before it could be considered for execution.- Returns:
- the duration this
Runspent in the queue waiting before it could be considered for execution.
-
isHasSubTasks
public boolean isHasSubTasks() -
getQueuingTimeMillis
@Exported(visibility=1) public long getQueuingTimeMillis()Returns the total time thisRunspent queuing, including the time spent by subtasks. This is the sum ofgetQueuingDurationMillis()plus all theSubTaskTimeInQueueAction.getQueuingDurationMillis().- Returns:
- the total time this
Runspent queuing
-
getBlockedTimeMillis
@Exported(visibility=2) public long getBlockedTimeMillis() -
getBuildableTimeMillis
@Exported(visibility=2) public long getBuildableTimeMillis() -
getWaitingTimeMillis
@Exported(visibility=2) public long getWaitingTimeMillis() -
getExecutingTimeMillis
@Exported(visibility=2) public long getExecutingTimeMillis()Returns the duration thisRunspent building, that is the wall time from when it left the queue until it was finished.- Returns:
- the duration this
Runspent building
-
getBuildingDurationMillis
@Exported(visibility=2) public long getBuildingDurationMillis() -
getTotalDurationMillis
@Exported(visibility=1) public long getTotalDurationMillis()Returns total duration for thisRun, that is the wall time from when it entered the queue until it was finished.- Returns:
- total duration for this
Run, that is the wall time from when it entered the queue until it was finished.
-
getExecutorUtilization
@Exported(visibility=2) public double getExecutorUtilization() -
getSubTaskCount
@Exported(visibility=2) public int getSubTaskCount() -
getRun
-
getQueuingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getQueuingDurationString() -
getQueuingTimeString
-
getBlockedTimeString
-
getBuildableTimeString
-
getWaitingTimeString
-
getBlockedDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBlockedDurationString() -
getBuildableDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildableDurationString() -
getWaitingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getWaitingDurationString() -
getExecutingTimeString
-
getBuildingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildingDurationString() -
getTotalDurationString
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-