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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubTaskTimeInQueueAction(long queuingDurationMillis, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis, long executingDurationMillis, int workUnitCount)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBlockedDurationMillis()
Returns the duration thisSubTask
spent in the queue because it was blocked.long
getBuildableDurationMillis()
Returns the duration thisSubTask
spent in the queue in a buildable state.String
getDisplayName()
long
getExecutingDurationMillis()
Returns the duration thisSubTask
spent executing.String
getIconFileName()
long
getQueuingDurationMillis()
How long spent queuing (this is the time from when theWorkUnitContext.item
entered the queue untilWorkUnitContext.synchronizeStart()
was called.String
getUrlName()
long
getWaitingDurationMillis()
Returns the duration thisSubTask
spent in the queue waiting before it could be considered for execution.int
getWorkUnitCount()
Returns the number of executor slots occupied by thisSubTask
.
-
-
-
Constructor Detail
-
SubTaskTimeInQueueAction
public SubTaskTimeInQueueAction(long queuingDurationMillis, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis, long executingDurationMillis, int workUnitCount)
Constructor- Parameters:
queuingDurationMillis
- How long spent queuing.
-
-
Method Detail
-
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
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
-