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<String> |
getAllocatedNodeNames()
Get node names only from the local cache of the ZNode
|
List<NodePoolNode> |
getAllocatedNodes()
Get list of NodePool nodes that have been allocated to fulfill this request
|
hudson.model.Label |
getJenkinsLabel()
Returns the jenkins label for this node request.
|
String |
getNodePoolLabel()
Returns the node pool label for the node request.
|
NodePoolState |
getState()
Returns the requested state value from the data model.
|
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 ZooKeeperObject
Exception
- if an error occurs while creating the znodepublic NodePoolState getState()
public List<String> getAllocatedNodeNames()
public List<NodePoolNode> getAllocatedNodes() throws Exception
Exception
- on ZooKeeper errorpublic void updateFromMap(Map newData)
updateFromMap
in class ZooKeeperObject
newData
- 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.