@Extension public class NodePools extends jenkins.model.GlobalConfiguration implements Iterable<NodePool>
| Constructor and Description |
|---|
NodePools() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
static NodePools |
get() |
Lock |
getCleanupLock() |
NodePoolJobHistory |
getJobHistory() |
List<NodePool> |
getNodePools() |
Iterator<NodePool> |
iterator() |
List<NodePool> |
nodePoolsForLabel(hudson.model.Label label)
Returns a list of NodePool objects that match the specified label.
|
void |
provisionNode(hudson.model.Label label,
hudson.model.Queue.Task task,
long queueID)
Submit request for node(s) required to execute the given task based on the
nodes associated with the specified label.
|
void |
readObject(ObjectInputStream in) |
void |
setNodePools(List<NodePool> nodePools) |
Stream<NodePool> |
stream() |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static NodePools get()
public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class jenkins.model.GlobalConfigurationhudson.model.Descriptor.FormExceptionpublic Lock getCleanupLock()
public List<NodePool> nodePoolsForLabel(hudson.model.Label label)
label - the label to matchpublic void provisionNode(hudson.model.Label label,
hudson.model.Queue.Task task,
long queueID)
throws IllegalArgumentException,
Exception
label - the label attribute to filter the list of available nodestask - the task the node is being provisioned forqueueID - the Queue id for the supplied taskIllegalArgumentException - if timeout is less than 1 secondException - if an error occurs managing the provision
componentspublic NodePoolJobHistory getJobHistory()
Copyright © 2016–2018. All rights reserved.