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.
|
Constructor and Description |
---|
JCloudsCloud(String name,
String endPointUrl,
boolean ignoreSsl,
String zone,
SlaveOptions slaveOptions,
List<JCloudsSlaveTemplate> templates,
String credentialsId) |
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<JCloudsCloud> |
getClouds() |
String |
getCredentialsId() |
SlaveOptions |
getEffectiveSlaveOptions()
Get effective options declared by this object.
|
String |
getEndPointUrl() |
boolean |
getIgnoreSsl() |
Openstack |
getOpenstack()
Get connected OpenStack client wrapper.
|
SlaveOptions |
getRawSlaveOptions()
Get configured options held by this object.
|
JCloudsSlaveTemplate |
getTemplate(String name) |
List<JCloudsSlaveTemplate> |
getTemplates() |
String |
getZone() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
String |
slaveIsWaitingFor(JCloudsSlave slave) |
all, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
@DataBoundConstructor @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public JCloudsCloud(@Nonnull String name, @Nonnull String endPointUrl, boolean ignoreSsl, @CheckForNull String zone, @CheckForNull SlaveOptions slaveOptions, @CheckForNull List<JCloudsSlaveTemplate> templates, @Nonnull String credentialsId)
@Nonnull public static List<JCloudsCloud> getClouds()
@Nonnull public static JCloudsCloud getByName(@Nonnull String name) throws IllegalArgumentException
IllegalArgumentException
- If the OpenStack cloud with given name does not exist.@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()
@CheckForNull public String getZone()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String slaveIsWaitingFor(@Nonnull JCloudsSlave slave) throws JCloudsCloud.ProvisioningFailedException
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 IOException
req
- StaplerRequest
rsp
- StaplerResponse
name
- Name of the template to provisionIOException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public Openstack getOpenstack() throws jenkins.plugins.openstack.compute.JCloudsCloud.LoginFailure
LoginFailure
- In case the details are incomplete or rejected by OpenStack.jenkins.plugins.openstack.compute.JCloudsCloud.LoginFailure
public String getCredentialsId()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public boolean getIgnoreSsl()
Copyright © 2016–2020. All rights reserved.