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
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible queue states for the item associated with thisFlowNode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueItemAction.QueueStategetNodeState(FlowNode node) Get the currentQueueItemAction.QueueStatefor aFlowNode.static Queue.ItemgetQueueItem(FlowNode node) abstract Queue.ItemGets theQueue.Itemfor this task, if it exists.Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
QueueItemAction
public QueueItemAction()
-
-
Method Details
-
itemInQueue
Gets theQueue.Itemfor this task, if it exists.- Returns:
- The item, or null if it's not in the queue.
-
getNodeState
Get the currentQueueItemAction.QueueStatefor aFlowNode. Will returnQueueItemAction.QueueState.UNKNOWNfor any node without one of anQueueItemActionorWorkspaceAction.- Parameters:
node- A non-nullFlowNode- Returns:
- The current queue state of the flownode.
-
getQueueItem
-