public class JCloudsCloud extends Cloud
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsCloud.ConverterImpl |
static class |
JCloudsCloud.DescriptorImpl |
Cloud.CloudState
ExtensionPoint.LegacyInstancesAreScopedToHudson
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier and Type | Field and Description |
---|---|
String |
endPointUrl |
int |
instanceCap |
String |
profile |
String |
providerName |
int |
scriptTimeout |
int |
startTimeout |
List<JCloudsSlaveTemplate> |
templates |
String |
zones |
Constructor and Description |
---|
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) |
all, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission
public final String providerName
public final String endPointUrl
public final String profile
public int instanceCap
public final List<JCloudsSlaveTemplate> templates
public final int scriptTimeout
public final int startTimeout
public final String zones
@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)
public String getCloudCredentialsId()
public boolean getTrustAll()
public void setCloudCredentialsId(String value)
public String getCloudGlobalKeyId()
public void setCloudGlobalKeyId(String value)
public String getGlobalPrivateKey()
public String getGlobalPublicKey()
public String getGroupPrefix()
protected Object readResolve()
public int getRetentionTime()
CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
public int getErrorRetentionTime()
CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
public ComputeService newCompute()
public ComputeService getCompute()
public List<JCloudsSlaveTemplate> getTemplates()
public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload)
public boolean canProvision(Cloud.CloudState state)
canProvision
in class Cloud
public void doProvision(StaplerRequest req, StaplerResponse rsp, @QueryParameter String name) throws ServletException, IOException, Descriptor.FormException
req
- StaplerRequest
.rsp
- StaplerResponse
.name
- Name of the template to provision.ServletException
- if an error occurs.IOException
- if an error occurs.Descriptor.FormException
- if the form does not validate.public void unregisterPhoneHomeMonitor(jenkins.plugins.jclouds.compute.PhoneHomeMonitor monitor)
public boolean phoneHomeNotify(String name)
public boolean allowGzippedUserData()
Copyright © 2016–2021. All rights reserved.