public class JCloudsSlave
extends hudson.slaves.AbstractCloudSlave
| Modifier and Type | Class and Description |
|---|---|
static class |
JCloudsSlave.JCloudsSlaveDescriptor |
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor| Constructor and Description |
|---|
JCloudsSlave(String cloudName,
String fsRoot,
org.openstack4j.model.compute.Server metadata,
String labelString,
String numExecutors,
int overrideRetentionTime,
String jvmOptions,
String credentialsId,
JCloudsCloud.SlaveType slaveType)
Constructs a new slave.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_terminate(hudson.model.TaskListener listener) |
hudson.slaves.AbstractCloudComputer<JCloudsSlave> |
createComputer() |
String |
getCloudName()
Get the JClouds profile identifier for the Cloud associated with this slave.
|
String |
getCredentialsId() |
String |
getJvmOptions()
Get Jclouds Custom JVM Options associated with this Slave.
|
int |
getRetentionTime()
Get the retention time for this slave, defaulting to the parent cloud's if not set.
|
JCloudsCloud.SlaveType |
getSlaveType() |
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeName, setRetentionStrategy, setUserIdcanTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, reconfigure, toComputerpublic JCloudsSlave(String cloudName, String fsRoot, org.openstack4j.model.compute.Server metadata, String labelString, String numExecutors, int overrideRetentionTime, String jvmOptions, String credentialsId, JCloudsCloud.SlaveType slaveType) throws IOException, hudson.model.Descriptor.FormException
cloudName - - the name of the cloud that's provisioning this slave.fsRoot - - Location of Jenkins root (homedir) on the slave.metadata - - node metadatalabelString - - Label(s) for this slave.numExecutors - - Number of executors for this slave.overrideRetentionTime - - Retention time to use specifically for this slave, overriding the cloud default.jvmOptions - - Custom options for lauching the JVM on the slave.credentialsId - - Id of the credentials in Jenkin's global credentials database.IOExceptionDescriptor.FormExceptionpublic String getJvmOptions()
public int getRetentionTime()
CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTESpublic String getCloudName()
public String getCredentialsId()
public JCloudsCloud.SlaveType getSlaveType()
public hudson.slaves.AbstractCloudComputer<JCloudsSlave> createComputer()
createComputer in class hudson.slaves.AbstractCloudSlaveprotected void _terminate(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
_terminate in class hudson.slaves.AbstractCloudSlaveIOExceptionInterruptedExceptionCopyright © 2004-2016. All Rights Reserved.