Package jenkins.plugins.jclouds.compute
Class JCloudsCloud
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.slaves.Cloud
jenkins.plugins.jclouds.compute.JCloudsCloud
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
The JClouds version of the Jenkins Cloud.
- Author:
- Vijay Kiran
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
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 profile, String providerName, String cloudCredentialsId, String cloudGlobalKeyId, String endPointUrl, int instanceCap, int retentionTime, int errorRetentionTime, int scriptTimeout, int startTimeout, String zones, String groupPrefix, boolean trustAll, List<JCloudsSlaveTemplate> templates) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canProvision
(Cloud.CloudState state) void
doProvision
(StaplerRequest req, StaplerResponse rsp, String name) Provisions a new node manually (by clicking a button in the computer list).int
Get the error retention time in minutes or default value from CloudInstanceDefaults if it is zero.getName()
int
Get the retention time in minutes or default value from CloudInstanceDefaults if it is zero.boolean
<A extends Closeable>
Aboolean
phoneHomeNotify
(String name) provision
(Cloud.CloudState state, int excessWorkload) protected Object
void
setCloudCredentialsId
(String value) void
setCloudGlobalKeyId
(String value) void
unregisterPhoneHomeMonitor
(jenkins.plugins.jclouds.compute.PhoneHomeMonitor monitor) 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, toString, wait, wait, wait
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Field Details
-
providerName
-
endPointUrl
-
profile
-
instanceCap
public int instanceCap -
templates
-
scriptTimeout
public final int scriptTimeout -
startTimeout
public final int startTimeout -
zones
-
-
Constructor Details
-
JCloudsCloud
@DataBoundConstructor public JCloudsCloud(String profile, String providerName, String cloudCredentialsId, String cloudGlobalKeyId, String endPointUrl, int instanceCap, int retentionTime, int errorRetentionTime, int scriptTimeout, int startTimeout, String zones, String groupPrefix, boolean trustAll, List<JCloudsSlaveTemplate> templates)
-
-
Method Details
-
getName
-
getCloudCredentialsId
-
getTrustAll
public boolean getTrustAll() -
setCloudCredentialsId
-
getCloudGlobalKeyId
-
setCloudGlobalKeyId
-
getGlobalPrivateKey
-
getGlobalPublicKey
-
getGroupPrefix
-
readResolve
-
getRetentionTime
public int getRetentionTime()Get the retention time in minutes or default value from CloudInstanceDefaults if it is zero.- Returns:
- The retention time in minutes.
- See Also:
-
CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
-
getErrorRetentionTime
public int getErrorRetentionTime()Get the error retention time in minutes or default value from CloudInstanceDefaults if it is zero.- Returns:
- The retention time in minutes.
- See Also:
-
CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
-
newApi
-
newCompute
-
getCompute
-
getTemplates
-
provision
public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload) -
canProvision
- Overrides:
canProvision
in classCloud
-
doProvision
public void doProvision(StaplerRequest req, StaplerResponse rsp, @QueryParameter String name) throws ServletException, IOException, Descriptor.FormException 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:
ServletException
- if an error occurs.IOException
- if an error occurs.Descriptor.FormException
- if the form does not validate.
-
unregisterPhoneHomeMonitor
public void unregisterPhoneHomeMonitor(jenkins.plugins.jclouds.compute.PhoneHomeMonitor monitor) -
phoneHomeNotify
-
allowGzippedUserData
public boolean allowGzippedUserData()
-