public class ComputeEngineCloud
extends hudson.slaves.AbstractCloudImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
ComputeEngineCloud.GoogleCloudDescriptor |
| Modifier and Type | Field and Description |
|---|---|
protected ComputeClient |
client |
static String |
CLOUD_ID_LABEL_KEY |
static String |
CLOUD_PREFIX |
static String |
CONFIG_LABEL_KEY |
List<InstanceConfiguration> |
configurations |
String |
credentialsId |
String |
projectId |
| Constructor and Description |
|---|
ComputeEngineCloud(String cloudName,
String projectId,
String credentialsId,
String instanceCapStr,
List<InstanceConfiguration> configurations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(InstanceConfiguration config) |
boolean |
canProvision(hudson.model.Label label) |
org.kohsuke.stapler.HttpResponse |
doProvision(String configuration) |
String |
getCloudName() |
String |
getDisplayName() |
InstanceConfiguration |
getInstanceConfig(hudson.model.Label label)
Gets
InstanceConfiguration that has the matching Label. |
InstanceConfiguration |
getInstanceConfig(String description)
Gets
InstanceConfiguration that has the matching Description. |
static void |
log(Logger logger,
Level level,
hudson.model.TaskListener listener,
String message) |
static void |
log(Logger logger,
Level level,
hudson.model.TaskListener listener,
String message,
Throwable exception) |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
protected Object |
readResolve() |
getInstanceCap, getInstanceCapStr, setInstanceCap, setInstanceCapStrall, checkPermission, getACL, getDescriptor, getSearchUrl, hasPermissionpublic static final String CLOUD_PREFIX
public static final String CONFIG_LABEL_KEY
public static final String CLOUD_ID_LABEL_KEY
public final String projectId
public final String credentialsId
public final List<InstanceConfiguration> configurations
protected transient ComputeClient client
public static void log(Logger logger, Level level, hudson.model.TaskListener listener, String message)
public static void log(Logger logger, Level level, hudson.model.TaskListener listener, String message, Throwable exception)
public String getCloudName()
public String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in class hudson.slaves.Cloudprotected Object readResolve()
public void addConfiguration(InstanceConfiguration config)
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloudpublic boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic InstanceConfiguration getInstanceConfig(hudson.model.Label label) throws NoConfigurationException
InstanceConfiguration that has the matching Label.NoConfigurationExceptionpublic InstanceConfiguration getInstanceConfig(String description)
InstanceConfiguration that has the matching Description.public org.kohsuke.stapler.HttpResponse doProvision(@QueryParameter
String configuration)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionCopyright © 2016–2018 Google. All rights reserved.