public class NodePoolNode extends ZooKeeperObject
| Constructor and Description |
|---|
NodePoolNode(NodePool nodePool,
String id)
Creates a new Zookeeper node for the node pool.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getHostKey() |
List<String> |
getHostKeys() |
String |
getJenkinsLabel()
Get Jenkins's version of the node label
|
String |
getName() |
NodePool |
getNodePool()
Used to render node editing page in the UI
|
String |
getNPType()
Get labeled type of node, according to NodePool
|
Integer |
getPort() |
void |
hold(String jobIdentifier)
Mark the node as being held.
|
void |
release()
Mark the node as being used and release it.
|
void |
setInUse() |
String |
toString() |
createZNode, delete, exists, getFromZK, getJson, getPath, getZKID, setPath, setZKID, updateFromMap, updateFromZK, writeToZKpublic String getNPType()
public String getJenkinsLabel()
public String getName()
public NodePool getNodePool()
public String getHost()
public Integer getPort()
public String getHostKey()
public void hold(String jobIdentifier) throws Exception
jobIdentifier - identifier of build/job that this node was running.Exception - on ZK errorCopyright © 2016–2018. All rights reserved.