public class NodeRequest extends ZooKeeperObject
| Constructor and Description |
|---|
NodeRequest(NodePool nodePool,
hudson.model.Queue.Task task)
Create new request
|
| Modifier and Type | Method and Description |
|---|---|
void |
createZNode()
Create the ZNode associated with this node request
|
String |
getAge() |
List<NodePoolNode> |
getAllocatedNodes()
Get list of NodePool nodes that have been allocated to fulfill this request
|
hudson.model.Label |
getJenkinsLabel() |
String |
getNodePoolLabel() |
RequestState |
getState() |
hudson.model.Queue.Task |
getTask() |
void |
updateFromMap(Map newData)
Update the local copy of the request data from values source from ZooKeeper
|
public void createZNode()
throws Exception
createZNode in class ZooKeeperObjectException - on ZooKeeper errorpublic RequestState getState()
public List<NodePoolNode> getAllocatedNodes() throws Exception
Exception - on ZooKeeper errorpublic void updateFromMap(Map newData)
updateFromMap in class ZooKeeperObjectnewData - map of data values from ZooKeeperpublic String getNodePoolLabel()
public hudson.model.Label getJenkinsLabel()
public String getAge()
public hudson.model.Queue.Task getTask()
Copyright © 2016–2018. All rights reserved.