Package hudson.model
Class Queue.LeftItem
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.Queue.Item
-
- hudson.model.Queue.LeftItem
-
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,ModelObjectWithContextMenu
- Enclosing class:
- Queue
public static final class Queue.LeftItem extends Queue.Item
Queue.Item
in theQueue.leftItems
stage. These are items that had left the queue by either began executing or by getting cancelled.- Since:
- 1.519
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
Fields Modifier and Type Field Description WorkUnitContext
outcome
-
Fields inherited from class hudson.model.Queue.Item
task
-
-
Constructor Summary
Constructors Constructor Description LeftItem(Queue.Item cancelled)
When item is cancelled.LeftItem(WorkUnitContext wuc)
When item has left the queue and begin executing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CauseOfBlockage
getCauseOfBlockage()
Gets an object that describes why this item is in the queue.Queue.Executable
getExecutable()
If this is representing an item that started executing, this property returns the primary executable (such asAbstractBuild
) that created out of it.boolean
isCancelled()
Is this representing a cancelled item?-
Methods inherited from class hudson.model.Queue.Item
authenticate, authenticate2, doCancelQueue, getApi, getAssignedLabel, getAssignedLabelFor, getCauses, getCausesDescription, getDisplayName, getFuture, getId, getIdLegacy, getInQueueForString, getInQueueSince, getParams, getSearchUrl, getUrl, getWhy, hasCancelPermission, isBlocked, isBuildable, isStuck, readResolve, toString
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Field Detail
-
outcome
public final WorkUnitContext outcome
-
-
Constructor Detail
-
LeftItem
public LeftItem(WorkUnitContext wuc)
When item has left the queue and begin executing.
-
LeftItem
public LeftItem(Queue.Item cancelled)
When item is cancelled.
-
-
Method Detail
-
getCauseOfBlockage
public CauseOfBlockage getCauseOfBlockage()
Description copied from class:Queue.Item
Gets an object that describes why this item is in the queue.- Specified by:
getCauseOfBlockage
in classQueue.Item
-
getExecutable
@Exported @CheckForNull public Queue.Executable getExecutable()
If this is representing an item that started executing, this property returns the primary executable (such asAbstractBuild
) that created out of it.
-
isCancelled
@Exported public boolean isCancelled()
Is this representing a cancelled item?
-
-