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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic final classThe request to provision was not fulfilled.Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudStateNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJCloudsCloud(String name, String endPointUrl, boolean ignoreSsl, String zone, long cleanfreq, SlaveOptions slaveOptions, List<JCloudsSlaveTemplate> templates, String credentialsId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddoProvision(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 JCloudsCloudlonglongstatic List<JCloudsCloud>Get effective options declared by this object.booleanlongGet connected OpenStack client wrapper.Get configured options held by this object.getTemplate(String name) getZone()provision(Cloud.CloudState cs, int excessWorkload) voidsetCleanfreq(long cleanfreq) voidsetLastCleanTime(long timeMillis) 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, reconfigure, registerPermissionsMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
JCloudsCloud
@DataBoundConstructor @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public JCloudsCloud(@Nonnull String name, @Nonnull String endPointUrl, boolean ignoreSsl, @CheckForNull String zone, long cleanfreq, @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.HolderGet effective options declared by this object. This is supposed to correctly evaluate all the overriding.- Specified by:
getEffectiveSlaveOptionsin interfaceSlaveOptions.Holder
-
getRawSlaveOptions
Description copied from interface:SlaveOptions.HolderGet configured options held by this object. This holds only the user configured diffs compared to parent.- Specified by:
getRawSlaveOptionsin interfaceSlaveOptions.Holder
-
getTemplates
-
getEndPointUrl
-
getZone
-
setLastCleanTime
public void setLastCleanTime(long timeMillis) -
getLastCleanTime
public long getLastCleanTime() -
getCleanfreq
@CheckForNull public long getCleanfreq() -
getCleanfreqToMillis
@CheckForNull public long getCleanfreqToMillis() -
setCleanfreq
@DataBoundSetter public void setCleanfreq(@Nonnull long cleanfreq) -
provision
-
slaveIsWaitingFor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String slaveIsWaitingFor(@Nonnull JCloudsSlave slave) throws JCloudsCloud.ProvisioningFailedException -
canProvision
- Overrides:
canProvisionin 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-StaplerRequestrsp-StaplerResponsename- Name of the template to provision- Throws:
IOException
-
getOpenstack
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public Openstack getOpenstack() throws JCloudsCloud.LoginFailureGet connected OpenStack client wrapper.- Throws:
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
-