public class Slave extends AbstractCloudSlave implements org.jenkinsci.plugins.cloudstats.TrackedItem
Slave
is responsible for
DigitalOceanComputer
Droplet
if it's not needed anymore.Modifier and Type | Class and Description |
---|---|
static class |
Slave.DescriptorImpl |
Slave.JnlpJar, Slave.SlaveDescriptor
Node.InternalComputerListener, Node.Mode
ExtensionPoint.LegacyInstancesAreScopedToHudson
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
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,
ComputerLauncher launcher,
RetentionStrategy retentionStrategy,
List<? extends NodeProperty<?>> nodeProperties,
String initScript) |
Modifier and Type | Method and Description |
---|---|
protected void |
_terminate(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() |
terminate
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, toString
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission
public 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, ComputerLauncher launcher, RetentionStrategy retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, String initScript) throws Descriptor.FormException, IOException
Descriptor.FormException
IOException
public DigitalOceanComputer createComputer()
DigitalOceanComputer
createComputer
in class AbstractCloudSlave
public DigitalOceanCloud getCloud()
DigitalOceanCloud
public String getRemoteAdmin()
protected void _terminate(TaskListener listener) throws IOException, InterruptedException
Droplet
when not needed anymore._terminate
in class AbstractCloudSlave
listener
- 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.TrackedItem
public long getStartTimeMillis()
public Integer getDropletId()
public String getPrivateKey()
public int getIdleTerminationTime()
public String getInitScript()
public String getJvmOpts()
public int getSshPort()
Copyright © 2016–2022. All rights reserved.