|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Queue.Item
@ExportedBean(defaultVisibility=999) public abstract static class Queue.Item
Item in a queue.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
Field Summary | |
---|---|
int |
id
VM-wide unique ID that tracks the Queue.TransientTask as it moves through different stages
in the queue (each represented by different subtypes of Item . |
Queue.Task |
task
Project to be built. |
Constructor Summary | |
---|---|
protected |
Queue.Item(Queue.Item item)
|
protected |
Queue.Item(Queue.Task task,
List<Action> actions,
int id,
FutureImpl future)
|
protected |
Queue.Item(Queue.Task task,
List<Action> actions,
int id,
FutureImpl future,
long inQueueSince)
|
Method Summary | |
---|---|
org.kohsuke.stapler.HttpResponse |
doCancelQueue()
Deprecated. Use Queue.doCancelItem(int) instead. |
Label |
getAssignedLabel()
If this task needs to be run on a node with a particular label, return that Label . |
abstract CauseOfBlockage |
getCauseOfBlockage()
Gets an object that describes why this item is in the queue. |
List<Cause> |
getCauses()
Convenience method that returns a read only view of the Cause s associated with this item in the queue. |
String |
getDisplayName()
|
Future<Queue.Executable> |
getFuture()
Can be used to wait for the completion (either normal, abnormal, or cancellation) of the Queue.TransientTask . |
String |
getInQueueForString()
Returns a human readable presentation of how long this item is already in the queue. |
long |
getInQueueSince()
Since when is this item in the queue. |
String |
getParams()
Gets a human-readable message about the parameters of this item |
String |
getSearchUrl()
Returns the URL of this item relative to the parent SearchItem . |
String |
getWhy()
Gets a human-readable status message describing why it's in the queue. |
boolean |
hasCancelPermission()
|
boolean |
isBlocked()
Build is blocked because another build is in progress, required Resource s are not available, or otherwise blocked
by Queue.Task.isBuildBlocked() . |
boolean |
isBuildable()
Build is waiting the executor to become available. |
boolean |
isStuck()
True if the item is starving for an executor for too long. |
String |
toString()
|
Methods inherited from class hudson.model.Actionable |
---|
addAction, doContextMenu, getAction, getAction, getActions, getActions, getDynamic |
Methods inherited from class hudson.model.AbstractModelObject |
---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Exported public final int id
Queue.TransientTask
as it moves through different stages
in the queue (each represented by different subtypes of Item
.
@Exported public final Queue.Task task
Constructor Detail |
---|
protected Queue.Item(Queue.Task task, List<Action> actions, int id, FutureImpl future)
protected Queue.Item(Queue.Task task, List<Action> actions, int id, FutureImpl future, long inQueueSince)
protected Queue.Item(Queue.Item item)
Method Detail |
---|
@Exported public boolean isBlocked()
Resource
s are not available, or otherwise blocked
by Queue.Task.isBuildBlocked()
.
@Exported public boolean isBuildable()
Queue.getItems()
for
'pseudo' items that are actually not really in the queue.
@Exported public boolean isStuck()
@Exported public long getInQueueSince()
public String getInQueueForString()
public Future<Queue.Executable> getFuture()
Queue.TransientTask
.
Just like id
, the same object tracks various stages of the queue.
public Label getAssignedLabel()
Label
. Otherwise null, indicating
it can run on anywhere.
This code takes LabelAssignmentAction
into account, then fall back to SubTask.getAssignedLabel()
public final List<Cause> getCauses()
Cause
s associated with this item in the queue.
@Exported public final String getWhy()
public abstract CauseOfBlockage getCauseOfBlockage()
@Exported public String getParams()
public boolean hasCancelPermission()
public String getDisplayName()
public String getSearchUrl()
SearchItem
SearchItem
.
@Deprecated public org.kohsuke.stapler.HttpResponse doCancelQueue() throws IOException, javax.servlet.ServletException
Queue.doCancelItem(int)
instead.
IOException
javax.servlet.ServletException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |