Class QueueItemAction
java.lang.Object
hudson.model.InvisibleAction
org.jenkinsci.plugins.workflow.actions.QueueItemAction
- All Implemented Interfaces:
Action
,ModelObject
,PersistentAction
Records information for a
node
block.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Possible queue states for the item associated with thisFlowNode
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueueItemAction.QueueState
getNodeState
(FlowNode node) Get the currentQueueItemAction.QueueState
for aFlowNode
.static Queue.Item
getQueueItem
(FlowNode node) abstract Queue.Item
Gets theQueue.Item
for this task, if it exists.Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
QueueItemAction
public QueueItemAction()
-
-
Method Details
-
itemInQueue
Gets theQueue.Item
for this task, if it exists.- Returns:
- The item, or null if it's not in the queue.
-
getNodeState
Get the currentQueueItemAction.QueueState
for aFlowNode
. Will returnQueueItemAction.QueueState.UNKNOWN
for any node without one of anQueueItemAction
orWorkspaceAction
.- Parameters:
node
- A non-nullFlowNode
- Returns:
- The current queue state of the flownode.
-
getQueueItem
-