public class CompoundCloud
extends hudson.slaves.AbstractCloudImpl
CompoundSlave
via other cloudsModifier and Type | Class and Description |
---|---|
static class |
CompoundCloud.CompoundCloudDescription |
static class |
CompoundCloud.ConfigurationEntry
Describes a single deployeable configuration, i.e.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends CompoundCloud.ConfigurationEntry> |
configuration |
protected AtomicInteger |
nodesProvisioned |
protected int |
retryTimeout |
Constructor and Description |
---|
CompoundCloud(String name,
String maxInstances,
List<? extends CompoundCloud.ConfigurationEntry> configuration,
String retryTimeout) |
CompoundCloud(String name,
String maxInstances,
String retryTimeout,
List<CompoundCloud.ConfigurationEntry> configuration)
This constructor has another args sequence, compared to the next constructor, because List
|
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(hudson.model.Label label) |
protected CompoundSlave |
doCreateSlave(CompoundCloud.ConfigurationEntry entry,
int nodeNumber,
String nodeName) |
static hudson.slaves.Cloud |
getCloudToProvision(hudson.model.Label label)
Looks up a
Cloud from Jenkins that is capable of deploying given Label |
List<? extends CompoundCloud.ConfigurationEntry> |
getConfiguration() |
AtomicInteger |
getNodesProvisioned() |
int |
getRetryTimeout() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
getInstanceCap, getInstanceCapStr, setInstanceCap, setInstanceCapStr
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
protected final int retryTimeout
protected final AtomicInteger nodesProvisioned
protected final List<? extends CompoundCloud.ConfigurationEntry> configuration
@DataBoundConstructor public CompoundCloud(String name, String maxInstances, String retryTimeout, List<CompoundCloud.ConfigurationEntry> configuration)
public CompoundCloud(String name, String maxInstances, List<? extends CompoundCloud.ConfigurationEntry> configuration, String retryTimeout)
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
protected CompoundSlave doCreateSlave(CompoundCloud.ConfigurationEntry entry, int nodeNumber, String nodeName) throws CompoundingException
CompoundingException
public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
public List<? extends CompoundCloud.ConfigurationEntry> getConfiguration()
public int getRetryTimeout()
public AtomicInteger getNodesProvisioned()
public static hudson.slaves.Cloud getCloudToProvision(hudson.model.Label label)
Cloud
from Jenkins
that is capable of deploying given Label
label
- to be deployedCopyright © 2004-2015. All Rights Reserved.