Class JCloudsCloud
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.slaves.Cloud
jenkins.plugins.openstack.compute.JCloudsCloud
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
,SlaveOptions.Holder
The JClouds version of the Jenkins Cloud.
- Author:
- Vijay Kiran
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
The request to provision was not fulfilled.Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJCloudsCloud
(String name, String endPointUrl, boolean ignoreSsl, String zone, SlaveOptions slaveOptions, List<JCloudsSlaveTemplate> templates, String credentialsId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canProvision
(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
static List<JCloudsCloud>
Get effective options declared by this object.boolean
Get connected OpenStack client wrapper.Get configured options held by this object.getTemplate
(String name) getZone()
slaveIsWaitingFor
(JCloudsSlave slave) toString()
Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDescriptor, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, registerPermissions
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Constructor Details
-
JCloudsCloud
@DataBoundConstructor @Restricted(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)
-
-
Method Details
-
getClouds
-
getByName
- Throws:
IllegalArgumentException
- If the OpenStack cloud with given name does not exist.
-
getEffectiveSlaveOptions
Description copied from interface:SlaveOptions.Holder
Get effective options declared by this object. This is supposed to correctly evaluate all the overriding.- Specified by:
getEffectiveSlaveOptions
in interfaceSlaveOptions.Holder
-
getRawSlaveOptions
Description copied from interface:SlaveOptions.Holder
Get configured options held by this object. This holds only the user configured diffs compared to parent.- Specified by:
getRawSlaveOptions
in interfaceSlaveOptions.Holder
-
getTemplates
-
getEndPointUrl
-
getZone
-
provision
-
slaveIsWaitingFor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String slaveIsWaitingFor(@Nonnull JCloudsSlave slave) throws JCloudsCloud.ProvisioningFailedException -
canProvision
- Overrides:
canProvision
in classCloud
-
getTemplate
-
doProvision
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doProvision(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name) throws IOException Provisions a new node manually (by clicking a button in the computer list).- Parameters:
req
-StaplerRequest
rsp
-StaplerResponse
name
- Name of the template to provision- Throws:
IOException
-
getOpenstack
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public Openstack getOpenstack() throws jenkins.plugins.openstack.compute.JCloudsCloud.LoginFailureGet connected OpenStack client wrapper.- Throws:
jenkins.plugins.openstack.compute.JCloudsCloud.LoginFailure
- In case the details are incomplete or rejected by OpenStack.
-
getCredentialsId
-
getIgnoreSsl
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public boolean getIgnoreSsl() -
toString
-