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 TypeMethodDescriptionlongReturns the duration thisSubTaskspent in the queue because it was blocked.longReturns the duration thisSubTaskspent in the queue in a buildable state.longReturns the duration thisSubTaskspent executing.longHow long spent queuing (this is the time from when theWorkUnitContext.itementered the queue untilWorkUnitContext.synchronizeStart()was called.longReturns the duration thisSubTaskspent in the queue waiting before it could be considered for execution.intReturns 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.itementered the queue untilWorkUnitContext.synchronizeStart()was called. -
getBlockedDurationMillis
public long getBlockedDurationMillis()Returns the duration thisSubTaskspent in the queue because it was blocked.- Returns:
- the duration this
SubTaskspent in the queue because it was blocked.
-
getBuildableDurationMillis
public long getBuildableDurationMillis()Returns the duration thisSubTaskspent in the queue in a buildable state.- Returns:
- the duration this
SubTaskspent in the queue in a buildable state.
-
getWaitingDurationMillis
public long getWaitingDurationMillis()Returns the duration thisSubTaskspent in the queue waiting before it could be considered for execution.- Returns:
- the duration this
SubTaskspent in the queue waiting before it could be considered for execution.
-
getExecutingDurationMillis
public long getExecutingDurationMillis()Returns the duration thisSubTaskspent executing.- Returns:
- the duration this
SubTaskspent 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:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-