Package jenkins.metrics.impl
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 Summary
ConstructorsConstructorDescriptionSubTaskTimeInQueueAction
(long queuingDurationMillis, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis, long executingDurationMillis, int workUnitCount) Constructor -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the duration thisSubTask
spent in the queue because it was blocked.long
Returns the duration thisSubTask
spent in the queue in a buildable state.long
Returns the duration thisSubTask
spent executing.long
How long spent queuing (this is the time from when theWorkUnitContext.item
entered the queue untilWorkUnitContext.synchronizeStart()
was called.long
Returns the duration thisSubTask
spent in the queue waiting before it could be considered for execution.int
Returns the number of executor slots occupied by thisSubTask
.
-
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 theWorkUnitContext.item
entered the queue untilWorkUnitContext.synchronizeStart()
was called. -
getBlockedDurationMillis
public long getBlockedDurationMillis()Returns the duration thisSubTask
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 thisSubTask
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 thisSubTask
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 thisSubTask
spent executing.- Returns:
- the duration this
SubTask
spent executing.
-
getWorkUnitCount
public int getWorkUnitCount()Returns the number of executor slots occupied by thisSubTask
.- Returns:
- the number of executor slots occupied by this
SubTask
.
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-