public class JCloudsCloud extends hudson.slaves.Cloud implements SlaveOptions.Holder
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsCloud.DescriptorImpl |
static class |
JCloudsCloud.ProvisioningFailedException
The request to provision was not fulfilled.
|
static class |
JCloudsCloud.SlaveType |
Modifier and Type | Field and Description |
---|---|
hudson.util.Secret |
credential |
String |
endPointUrl |
String |
identity |
String |
zone |
Constructor and Description |
---|
JCloudsCloud(String name,
String identity,
String credential,
String endPointUrl,
String zone,
SlaveOptions slaveOptions,
List<JCloudsSlaveTemplate> templates) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(hudson.model.Label label) |
void |
doProvision(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String name)
Provisions a new node manually (by clicking a button in the computer list)
|
static JCloudsCloud |
getByName(String name) |
static List<String> |
getCloudNames() |
SlaveOptions |
getEffectiveSlaveOptions()
Get effective options declared by this object.
|
Openstack |
getOpenstack()
Get connected OpenStack client wrapper.
|
SlaveOptions |
getRawSlaveOptions()
Get configured options held by this object.
|
JCloudsSlaveTemplate |
getTemplate(String name) |
List<JCloudsSlaveTemplate> |
getTemplates() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
@Nonnull public final hudson.util.Secret credential
@CheckForNull public final String zone
@DataBoundConstructor @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public JCloudsCloud(String name, String identity, String credential, String endPointUrl, String zone, SlaveOptions slaveOptions, List<JCloudsSlaveTemplate> templates)
@Nonnull public static JCloudsCloud getByName(@Nonnull String name) throws IllegalArgumentException
IllegalArgumentException
@Nonnull public SlaveOptions getEffectiveSlaveOptions()
SlaveOptions.Holder
getEffectiveSlaveOptions
in interface SlaveOptions.Holder
@Nonnull public SlaveOptions getRawSlaveOptions()
SlaveOptions.Holder
getRawSlaveOptions
in interface SlaveOptions.Holder
@Nonnull public List<JCloudsSlaveTemplate> getTemplates()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
@CheckForNull public JCloudsSlaveTemplate getTemplate(String name)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doProvision(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name) throws javax.servlet.ServletException, IOException, hudson.model.Descriptor.FormException
req
- StaplerRequest
rsp
- StaplerResponse
name
- Name of the template to provisionjavax.servlet.ServletException
IOException
hudson.model.Descriptor.FormException
Copyright © 2016. All rights reserved.