public class Slave
extends hudson.slaves.AbstractCloudSlave
Slave is responsible for
ComputerDroplet if it's not needed anymore.| Modifier and Type | Class and Description |
|---|---|
static class |
Slave.DescriptorImpl |
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor| Modifier and Type | Field and Description |
|---|---|
String |
initScript |
String |
jvmopts |
| Constructor and Description |
|---|
Slave(String cloudName,
String name,
String nodeDescription,
Integer dropletId,
String privateKey,
String remoteFS,
String remoteAdmin,
int numExecutors,
int idleTerminationTime,
hudson.model.Node.Mode mode,
String labelString,
hudson.slaves.ComputerLauncher launcher,
hudson.slaves.RetentionStrategy retentionStrategy,
List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
String initScript,
String jvmopts)
Slaves are created by SlaveTemplates |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_terminate(hudson.model.TaskListener listener)
Deletes the
Droplet when not needed anymore. |
Computer |
createComputer()
Override to create a DigitalOcean
Computer |
Cloud |
getCloud()
Retrieve a handle to the associated
Cloud |
Integer |
getDropletId() |
int |
getIdleTerminationTime() |
String |
getPrivateKey() |
String |
getRemoteAdmin()
Get the name of the remote admin user
|
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 Slave(String cloudName, String name, String nodeDescription, Integer dropletId, String privateKey, String remoteFS, String remoteAdmin, int numExecutors, int idleTerminationTime, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher launcher, hudson.slaves.RetentionStrategy retentionStrategy, List<? extends hudson.slaves.NodeProperty<?>> nodeProperties, String initScript, String jvmopts) throws hudson.model.Descriptor.FormException, IOException
Slaves are created by SlaveTemplatesname - nodeDescription - dropletId - privateKey - remoteFS - remoteAdmin - numExecutors - idleTerminationTime - mode - labelString - launcher - retentionStrategy - nodeProperties - initScript - jvmopts - Descriptor.FormExceptionIOExceptionpublic Computer createComputer()
ComputercreateComputer in class hudson.slaves.AbstractCloudSlavepublic Cloud getCloud()
Cloudpublic String getRemoteAdmin()
protected void _terminate(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
Droplet when not needed anymore._terminate in class hudson.slaves.AbstractCloudSlavelistener - UnusedIOExceptionInterruptedExceptionpublic Integer getDropletId()
public String getPrivateKey()
public int getIdleTerminationTime()
Copyright © 2004-2015. All Rights Reserved.