Package jenkins.plugins.jclouds.compute
Class JCloudsSlaveTemplate
java.lang.Object
jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate
- All Implemented Interfaces:
com.google.common.base.Supplier<JCloudsNodeMetadata>
,Describable<JCloudsSlaveTemplate>
,Supplier<JCloudsNodeMetadata>
public class JCloudsSlaveTemplate
extends Object
implements Describable<JCloudsSlaveTemplate>, com.google.common.base.Supplier<JCloudsNodeMetadata>
- Author:
- Vijay Kiran
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
final boolean
final double
final String
final String
final String
final String
final boolean
final boolean
final String
final String
final String
final Node.Mode
final String
final String
final int
final String
final String
final Integer
final boolean
final int
final String
final int
final boolean
final boolean
final boolean
final int
-
Constructor Summary
ConstructorDescriptionJCloudsSlaveTemplate
(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) -
Method Summary
Modifier and TypeMethodDescriptionget()
This is where the actual provisioning (accessing the cloud provider) happens.getCloud()
boolean
int
boolean
boolean
provisionSlave
(TaskListener listener, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) protected Object
Initializes data structure that we don't persist.
-
Field Details
-
name
-
imageId
-
imageNameRegex
-
hardwareId
-
cores
public final double cores -
ram
public final int ram -
osFamily
-
labelString
-
description
-
osVersion
-
locationId
-
numExecutors
public final int numExecutors -
stopOnTerminate
public final boolean stopOnTerminate -
preExistingJenkinsUser
public final boolean preExistingJenkinsUser -
allowSudo
public final boolean allowSudo -
installPrivateKey
public final boolean installPrivateKey -
overrideRetentionTime
-
spoolDelayMs
public final int spoolDelayMs -
waitPhoneHome
public final boolean waitPhoneHome -
waitPhoneHomeTimeout
public final int waitPhoneHomeTimeout -
keyPairName
-
assignPublicIp
public final boolean assignPublicIp -
networks
-
securityGroups
-
mode
-
useConfigDrive
public final boolean useConfigDrive -
isPreemptible
public final boolean isPreemptible
-
-
Constructor Details
-
JCloudsSlaveTemplate
@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)
-
-
Method Details
-
getCredentialsId
-
getAdminCredentialsId
-
getUserDataEntries
-
getInitScriptId
-
getPreferredAddress
-
getUseJnlp
public boolean getUseJnlp() -
getJnlpProvision
public boolean getJnlpProvision() -
getCloud
-
readResolve
Initializes data structure that we don't persist.- Returns:
- The initialized object.
-
getJenkinsUser
-
getJenkinsPrivateKey
-
getJenkinsPublicKey
-
getAdminUser
-
getJvmOptions
-
getNumExecutors
public int getNumExecutors() -
getFsRoot
-
getLabelSet
-
provisionSlave
public JCloudsSlave provisionSlave(TaskListener listener, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) throws IOException - Throws:
IOException
-
get
This is where the actual provisioning (accessing the cloud provider) happens.- Specified by:
get
in interfacecom.google.common.base.Supplier<JCloudsNodeMetadata>
- Specified by:
get
in interfaceSupplier<JCloudsNodeMetadata>
-
hasOverrideRetentionTime
public boolean hasOverrideRetentionTime() -
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<JCloudsSlaveTemplate>
-