public class DummyCloudImpl
extends hudson.slaves.Cloud
Cloud implementation useful for testing.
This implementation launches "java -jar slave.jar" on the localhost when provisioning a new slave.
| Modifier and Type | Field and Description |
|---|---|
hudson.model.Label |
label
Only reacts to provisioning for this label.
|
int |
numProvisioned |
| Constructor and Description |
|---|
DummyCloudImpl(JenkinsRule rule,
int delay) |
DummyCloudImpl(JenkinsRule rule,
int delay,
List<hudson.slaves.NodeProperty<?>> nodeProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(hudson.model.Label label) |
hudson.model.Descriptor<hudson.slaves.Cloud> |
getDescriptor() |
List<hudson.slaves.NodeProperty<?>> |
getNodeProperties() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermissionpublic int numProvisioned
public hudson.model.Label label
public DummyCloudImpl(JenkinsRule rule, int delay)
public DummyCloudImpl(JenkinsRule rule, int delay, List<hudson.slaves.NodeProperty<?>> nodeProperties)
public List<hudson.slaves.NodeProperty<?>> getNodeProperties()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloudpublic boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic hudson.model.Descriptor<hudson.slaves.Cloud> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>getDescriptor in class hudson.slaves.CloudCopyright © 2004–2019. All rights reserved.