Package jenkins.metrics.impl
Class TimeInQueueAction
- java.lang.Object
-
- jenkins.metrics.impl.TimeInQueueAction
-
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,RunAction2
@ExportedBean public class TimeInQueueAction extends Object implements Serializable, RunAction2
Tracks the time spent in the queue- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeInQueueAction(long queuingDurationMillis)
Deprecated.TimeInQueueAction(long millisecondsInQueue, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBlockedDurationMillis()
Returns the duration thisRun
spent in the queue because it was blocked.String
getBlockedDurationString()
long
getBlockedTimeMillis()
String
getBlockedTimeString()
long
getBuildableDurationMillis()
Returns the duration thisRun
spent in the queue in a buildable state.String
getBuildableDurationString()
long
getBuildableTimeMillis()
String
getBuildableTimeString()
long
getBuildingDurationMillis()
String
getBuildingDurationString()
String
getDisplayName()
long
getExecutingTimeMillis()
Returns the duration thisRun
spent building, that is the wall time from when it left the queue until it was finished.String
getExecutingTimeString()
double
getExecutorUtilization()
String
getIconFileName()
long
getQueuingDurationMillis()
Returns the duration thisRun
spent queuing, that is the wall time from when it entered the queue until it left the queue.String
getQueuingDurationString()
long
getQueuingTimeMillis()
Returns the total time thisRun
spent queuing, including the time spent by subtasks.String
getQueuingTimeString()
Run
getRun()
int
getSubTaskCount()
long
getTotalDurationMillis()
Returns total duration for thisRun
, that is the wall time from when it entered the queue until it was finished.String
getTotalDurationString()
String
getUrlName()
long
getWaitingDurationMillis()
Returns the duration thisRun
spent in the queue waiting before it could be considered for execution.String
getWaitingDurationString()
long
getWaitingTimeMillis()
String
getWaitingTimeString()
boolean
isHasSubTasks()
void
onAttached(Run<?,?> r)
void
onLoad(Run<?,?> r)
-
-
-
Constructor Detail
-
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 Detail
-
getQueuingDurationMillis
@Exported(visibility=1) public long getQueuingDurationMillis()
Returns the duration thisRun
spent queuing, that is the wall time from when it entered the queue until it left the queue.- Returns:
- the duration this
Run
spent queuing
-
getBlockedDurationMillis
@Exported(visibility=2) public long getBlockedDurationMillis()
Returns the duration thisRun
spent in the queue because it was blocked.- Returns:
- the duration this
Run
spent in the queue because it was blocked.
-
getBuildableDurationMillis
@Exported(visibility=2) public long getBuildableDurationMillis()
Returns the duration thisRun
spent in the queue in a buildable state.- Returns:
- the duration this
Run
spent in the queue in a buildable state.
-
getWaitingDurationMillis
@Exported(visibility=2) public long getWaitingDurationMillis()
Returns the duration thisRun
spent in the queue waiting before it could be considered for execution.- Returns:
- the duration this
Run
spent 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 thisRun
spent queuing, including the time spent by subtasks. This is the sum ofgetQueuingDurationMillis()
plus all theSubTaskTimeInQueueAction.getQueuingDurationMillis()
.- Returns:
- the total time this
Run
spent 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 thisRun
spent building, that is the wall time from when it left the queue until it was finished.- Returns:
- the duration this
Run
spent 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
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public Run getRun()
-
getQueuingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getQueuingDurationString()
-
getQueuingTimeString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getQueuingTimeString()
-
getBlockedTimeString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBlockedTimeString()
-
getBuildableTimeString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildableTimeString()
-
getWaitingTimeString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String 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
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getExecutingTimeString()
-
getBuildingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildingDurationString()
-
getTotalDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getTotalDurationString()
-
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
-
onAttached
public void onAttached(Run<?,?> r)
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> r)
- Specified by:
onLoad
in interfaceRunAction2
-
-