public class Slave
extends hudson.slaves.AbstractCloudSlave
implements org.jenkinsci.plugins.cloudstats.TrackedItem
Slave is responsible for
DigitalOceanComputerDroplet if it's not needed anymore.| Modifier and Type | Class and Description |
|---|---|
static class |
Slave.DescriptorImpl |
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor| Constructor and Description |
|---|
Slave(org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId,
String cloudName,
String name,
String nodeDescription,
Integer dropletId,
String privateKey,
String remoteAdmin,
String remoteFS,
int sshPort,
int numExecutors,
int idleTerminationTime,
String labelString,
hudson.slaves.ComputerLauncher launcher,
hudson.slaves.RetentionStrategy retentionStrategy,
List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
String initScript) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_terminate(hudson.model.TaskListener listener)
Deletes the
Droplet when not needed anymore. |
DigitalOceanComputer |
createComputer()
Override to create a DigitalOcean
DigitalOceanComputer |
DigitalOceanCloud |
getCloud()
Retrieve a handle to the associated
DigitalOceanCloud |
Integer |
getDropletId() |
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
getId() |
int |
getIdleTerminationTime() |
String |
getInitScript() |
String |
getJvmOpts() |
String |
getPrivateKey() |
String |
getRemoteAdmin()
Get the name of the remote admin user
|
int |
getSshPort() |
long |
getStartTimeMillis() |
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toStringcanTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputerpublic Slave(org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId,
String cloudName,
String name,
String nodeDescription,
Integer dropletId,
String privateKey,
String remoteAdmin,
String remoteFS,
int sshPort,
int numExecutors,
int idleTerminationTime,
String labelString,
hudson.slaves.ComputerLauncher launcher,
hudson.slaves.RetentionStrategy retentionStrategy,
List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
String initScript)
throws hudson.model.Descriptor.FormException,
IOException
hudson.model.Descriptor.FormExceptionIOExceptionpublic DigitalOceanComputer createComputer()
DigitalOceanComputercreateComputer in class hudson.slaves.AbstractCloudSlavepublic DigitalOceanCloud getCloud()
DigitalOceanCloudpublic String getRemoteAdmin()
protected void _terminate(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
Droplet when not needed anymore._terminate in class hudson.slaves.AbstractCloudSlavelistener - UnusedIOException - which is thrown in case of file system errors.InterruptedException - in case the thread itself is interrupted.public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
getId in interface org.jenkinsci.plugins.cloudstats.TrackedItempublic long getStartTimeMillis()
public Integer getDropletId()
public String getPrivateKey()
public int getIdleTerminationTime()
public String getInitScript()
public String getJvmOpts()
public int getSshPort()
Copyright © 2016–2018. All rights reserved.