public class JCloudsSlaveTemplate extends Object implements Describable<JCloudsSlaveTemplate>, com.google.common.base.Supplier<JCloudsNodeMetadata>
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsSlaveTemplate.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
boolean |
allowSudo |
boolean |
assignPublicIp |
double |
cores |
String |
description |
String |
hardwareId |
String |
imageId |
String |
imageNameRegex |
boolean |
installPrivateKey |
boolean |
isPreemptible |
String |
keyPairName |
String |
labelString |
String |
locationId |
Node.Mode |
mode |
String |
name |
String |
networks |
int |
numExecutors |
String |
osFamily |
String |
osVersion |
Integer |
overrideRetentionTime |
boolean |
preExistingJenkinsUser |
int |
ram |
String |
securityGroups |
int |
spoolDelayMs |
boolean |
stopOnTerminate |
boolean |
useConfigDrive |
boolean |
waitPhoneHome |
int |
waitPhoneHomeTimeout |
Constructor and Description |
---|
JCloudsSlaveTemplate(String name,
String imageId,
String imageNameRegex,
String hardwareId,
double cores,
int ram,
String osFamily,
String osVersion,
String locationId,
String labelString,
String description,
String initScriptId,
int numExecutors,
boolean stopOnTerminate,
String jvmOptions,
boolean preExistingJenkinsUser,
String fsRoot,
boolean allowSudo,
boolean installPrivateKey,
Integer overrideRetentionTime,
boolean hasOverrideRetentionTime,
int spoolDelayMs,
boolean assignFloatingIp,
boolean waitPhoneHome,
int waitPhoneHomeTimeout,
String keyPairName,
boolean assignPublicIp,
String networks,
String securityGroups,
String credentialsId,
String adminCredentialsId,
String mode,
boolean useConfigDrive,
boolean isPreemptible,
List<UserData> userDataEntries,
String preferredAddress,
boolean useJnlp,
boolean jnlpProvision) |
Modifier and Type | Method and Description |
---|---|
JCloudsNodeMetadata |
get()
This is where the actual provisioning (accessing the cloud provider) happens.
|
String |
getAdminCredentialsId() |
String |
getAdminUser() |
JCloudsCloud |
getCloud() |
String |
getCredentialsId() |
Descriptor<JCloudsSlaveTemplate> |
getDescriptor() |
String |
getFsRoot() |
String |
getInitScriptId() |
String |
getJenkinsPrivateKey() |
String |
getJenkinsPublicKey() |
String |
getJenkinsUser() |
boolean |
getJnlpProvision() |
String |
getJvmOptions() |
Set<LabelAtom> |
getLabelSet() |
int |
getNumExecutors() |
String |
getPreferredAddress() |
boolean |
getUseJnlp() |
List<UserData> |
getUserDataEntries() |
boolean |
hasOverrideRetentionTime() |
JCloudsSlave |
provisionSlave(TaskListener listener,
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) |
protected Object |
readResolve()
Initializes data structure that we don't persist.
|
public final String name
public final String imageId
public final String imageNameRegex
public final String hardwareId
public final double cores
public final int ram
public final String osFamily
public final String labelString
public final String description
public final String osVersion
public final String locationId
public final int numExecutors
public final boolean stopOnTerminate
public final boolean preExistingJenkinsUser
public final boolean allowSudo
public final boolean installPrivateKey
public final Integer overrideRetentionTime
public final int spoolDelayMs
public final boolean waitPhoneHome
public final int waitPhoneHomeTimeout
public final String keyPairName
public final boolean assignPublicIp
public final String networks
public final String securityGroups
public final Node.Mode mode
public final boolean useConfigDrive
public final boolean isPreemptible
@DataBoundConstructor public JCloudsSlaveTemplate(String name, String imageId, String imageNameRegex, String hardwareId, double cores, int ram, String osFamily, String osVersion, String locationId, String labelString, String description, String initScriptId, int numExecutors, boolean stopOnTerminate, String jvmOptions, boolean preExistingJenkinsUser, String fsRoot, boolean allowSudo, boolean installPrivateKey, Integer overrideRetentionTime, boolean hasOverrideRetentionTime, int spoolDelayMs, boolean assignFloatingIp, boolean waitPhoneHome, int waitPhoneHomeTimeout, String keyPairName, boolean assignPublicIp, String networks, String securityGroups, String credentialsId, String adminCredentialsId, String mode, boolean useConfigDrive, boolean isPreemptible, List<UserData> userDataEntries, String preferredAddress, boolean useJnlp, boolean jnlpProvision)
public String getCredentialsId()
public String getAdminCredentialsId()
public String getInitScriptId()
public String getPreferredAddress()
public boolean getUseJnlp()
public boolean getJnlpProvision()
public JCloudsCloud getCloud()
protected Object readResolve()
public String getJenkinsUser()
public String getJenkinsPrivateKey()
public String getJenkinsPublicKey()
public String getAdminUser()
public String getJvmOptions()
public int getNumExecutors()
public String getFsRoot()
public JCloudsSlave provisionSlave(TaskListener listener, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) throws IOException
IOException
public JCloudsNodeMetadata get()
get
in interface com.google.common.base.Supplier<JCloudsNodeMetadata>
public boolean hasOverrideRetentionTime()
public Descriptor<JCloudsSlaveTemplate> getDescriptor()
getDescriptor
in interface Describable<JCloudsSlaveTemplate>
Copyright © 2016–2021. All rights reserved.