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()
Returns the host.
|
String |
getHostKey()
Returns the first host key.
|
List<String> |
getHostKeys()
Returns the host keys.
|
String |
getJenkinsLabel()
Get Jenkins's version of the node label
|
String |
getName() |
NodePool |
getNodePool()
Used to render node editing page in the UI
|
List<String> |
getNPTypes()
Returns a list of NodePool type labels.
|
Integer |
getPort()
Returns the connection port.
|
String |
getProvider()
Get the name of the provider that provisioned this node
|
void |
hold(String jobIdentifier)
Mark the node as being held.
|
void |
release()
Mark the node as being used and release it.
|
void |
setInUse()
Sets the NodePool state to IN USE.
|
String |
toString()
Returns the string representation for this object.
|
createZNode, delete, exists, getFromZK, getJson, getPath, getZKID, setPath, setZKID, updateFromMap, updateFromZK, writeToZKpublic List<String> getNPTypes()
public String getProvider()
public String getJenkinsLabel()
public String getName()
public NodePool getNodePool()
public String getHost()
public Integer getPort()
public String getHostKey()
public String toString()
public void hold(String jobIdentifier) throws Exception
jobIdentifier - identifier of build/job that this node was running.Exception - on ZK errorpublic void setInUse()
throws Exception
Exception - if an error occurs while setting the stateCopyright © 2016–2018. All rights reserved.