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
Modifier and Type | Field and Description |
---|---|
boolean |
stopOnTerminate |
Constructor and Description |
---|
JCloudsSlave(String cloudName,
String fsRoot,
org.jclouds.compute.domain.NodeMetadata metadata,
String labelString,
String numExecutors,
boolean stopOnTerminate,
int overrideRetentionTime,
String jvmOptions,
String credentialsId,
JCloudsCloud.SlaveType slaveType)
Constructs a new slave from JCloud's NodeMetadata
|
JCloudsSlave(String cloudName,
String name,
String remoteFS,
String numExecutors,
hudson.model.Node.Mode mode,
String labelString,
hudson.slaves.ComputerLauncher launcher,
hudson.slaves.RetentionStrategy retentionStrategy,
List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
boolean stopOnTerminate,
int overrideRetentionTime,
String jvmOptions,
String credentialsId,
JCloudsCloud.SlaveType slaveType) |
Modifier and Type | Method and Description |
---|---|
protected void |
_terminate(hudson.model.TaskListener listener)
Destroy the node calls
ComputeService.destroyNode(java.lang.String) |
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.
|
org.jclouds.compute.domain.NodeMetadata |
getNodeMetaData()
Get Jclouds NodeMetadata 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() |
boolean |
isPendingDelete() |
void |
setPendingDelete(boolean pendingDelete) |
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, setUserId
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, reconfigure, toComputer
@DataBoundConstructor public JCloudsSlave(String cloudName, String name, String remoteFS, String numExecutors, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher launcher, hudson.slaves.RetentionStrategy retentionStrategy, List<? extends hudson.slaves.NodeProperty<?>> nodeProperties, boolean stopOnTerminate, int overrideRetentionTime, String jvmOptions, String credentialsId, JCloudsCloud.SlaveType slaveType) throws hudson.model.Descriptor.FormException, IOException
hudson.model.Descriptor.FormException
IOException
public JCloudsSlave(String cloudName, String fsRoot, org.jclouds.compute.domain.NodeMetadata metadata, String labelString, String numExecutors, boolean stopOnTerminate, 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
- - JCloudsNodeMetadatalabelString
- - Label(s) for this slave.numExecutors
- - Number of executors for this slave.stopOnTerminate
- - if true
, suspend the slave rather than terminating it.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.IOException
Descriptor.FormException
public org.jclouds.compute.domain.NodeMetadata getNodeMetaData()
NodeMetadata
public String getJvmOptions()
public int getRetentionTime()
public String getCloudName()
public boolean isPendingDelete()
public void setPendingDelete(boolean pendingDelete)
public String getCredentialsId()
public JCloudsCloud.SlaveType getSlaveType()
public hudson.slaves.AbstractCloudComputer<JCloudsSlave> createComputer()
createComputer
in class hudson.slaves.AbstractCloudSlave
protected void _terminate(hudson.model.TaskListener listener) throws IOException, InterruptedException
ComputeService.destroyNode(java.lang.String)
_terminate
in class hudson.slaves.AbstractCloudSlave
IOException
InterruptedException
Copyright © 2004-2015. All Rights Reserved.