public class JCloudsCloud
extends hudson.slaves.Cloud
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsCloud.DescriptorImpl |
static class |
JCloudsCloud.SlaveType |
Modifier and Type | Field and Description |
---|---|
hudson.util.Secret |
credential |
String |
endPointUrl |
String |
identity |
int |
instanceCap |
String |
profile |
int |
scriptTimeout |
int |
startTimeout |
List<JCloudsSlaveTemplate> |
templates |
String |
zone |
Constructor and Description |
---|
JCloudsCloud(String profile,
String identity,
String credential,
String endPointUrl,
int instanceCap,
int retentionTime,
int scriptTimeout,
int startTimeout,
String zone,
List<JCloudsSlaveTemplate> templates) |
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<String> |
getCloudNames() |
org.jclouds.compute.ComputeService |
getCompute() |
int |
getRetentionTime()
Get the retention time, defaulting to 30 minutes.
|
int |
getRunningNodesCount()
Determine how many nodes are currently running for this cloud.
|
JCloudsSlaveTemplate |
getTemplate(hudson.model.Label label)
Gets
JCloudsSlaveTemplate that has the matching Label . |
JCloudsSlaveTemplate |
getTemplate(String name) |
List<JCloudsSlaveTemplate> |
getTemplates() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
protected Object |
readResolve() |
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
public final String identity
public final hudson.util.Secret credential
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 zone
public static JCloudsCloud getByName(String name)
protected Object readResolve()
public int getRetentionTime()
public org.jclouds.compute.ComputeService getCompute()
public List<JCloudsSlaveTemplate> getTemplates()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
public JCloudsSlaveTemplate getTemplate(String name)
public JCloudsSlaveTemplate getTemplate(hudson.model.Label label)
JCloudsSlaveTemplate
that has the matching Label
.public void doProvision(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name) throws javax.servlet.ServletException, IOException, hudson.model.Descriptor.FormException
req
- StaplerRequest
rsp
- StaplerResponse
name
- Name of the template to provisionjavax.servlet.ServletException
IOException
Descriptor.FormException
public int getRunningNodesCount()
Copyright © 2004-2015. All Rights Reserved.