public class SpotinstSlave extends Slave implements EphemeralNode
Modifier and Type | Class and Description |
---|---|
static class |
SpotinstSlave.DescriptorImpl |
Slave.JnlpJar, Slave.SlaveDescriptor
Node.InternalComputerListener, Node.Mode
ExtensionPoint.LegacyInstancesAreScopedToHudson
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
Constructor and Description |
---|
SpotinstSlave(String name,
String elastigroupId,
String instanceId,
String instanceType,
String label,
String idleTerminationMinutes,
String workspaceDir,
String numOfExecutors,
Node.Mode mode,
ComputerLauncher launcher,
List<NodeProperty<?>> nodeProperties) |
Modifier and Type | Method and Description |
---|---|
Node |
asNode() |
Computer |
createComputer() |
Boolean |
forceTerminate() |
Date |
getCreatedAt() |
SpotinstSlave.DescriptorImpl |
getDescriptor() |
String |
getElastigroupId() |
String |
getGroupUrl() |
String |
getInstanceId() |
String |
getInstanceType() |
String |
getPrivateIp() |
String |
getPublicIp() |
BaseSpotinstCloud |
getSpotinstCloud()
In some edge-cases (e.g.: user has deleted the cloud before removing its nodes)
Jenkins.getCloud(java.lang.String) will
return null, therefore we keep a possibly-stale (yet usable) instance of the cloud as a member to remedy those
scenarios (for example, terminate() which calls this method). |
SlaveUsageEnum |
getUsage() |
String |
getWorkspaceDir() |
boolean |
isSlavePending() |
Boolean |
onSlaveConnected() |
Node |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
void |
setInstanceId(String instanceId) |
void |
terminate() |
createLauncher, equals, getClockDifferenceCallable, getComputer, 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, 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 SpotinstSlave(String name, String elastigroupId, String instanceId, String instanceType, String label, String idleTerminationMinutes, String workspaceDir, String numOfExecutors, Node.Mode mode, ComputerLauncher launcher, List<NodeProperty<?>> nodeProperties) throws Descriptor.FormException, IOException
Descriptor.FormException
IOException
public String getInstanceId()
public void setInstanceId(String instanceId)
public String getInstanceType()
public String getWorkspaceDir()
public Date getCreatedAt()
public String getElastigroupId()
public SlaveUsageEnum getUsage()
public String getGroupUrl()
public BaseSpotinstCloud getSpotinstCloud()
Jenkins.getCloud(java.lang.String)
will
return null, therefore we keep a possibly-stale (yet usable) instance of the cloud as a member to remedy those
scenarios (for example, terminate()
which calls this method).public String getPrivateIp()
public String getPublicIp()
public SpotinstSlave.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Node>
getDescriptor
in class Slave
public Computer createComputer()
createComputer
in class Slave
public Node reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
reconfigure
in interface ReconfigurableDescribable<Node>
reconfigure
in class Node
Descriptor.FormException
public Node asNode()
asNode
in interface EphemeralNode
public void terminate()
public Boolean forceTerminate()
public boolean isSlavePending()
public Boolean onSlaveConnected()
Copyright © 2016–2024. All rights reserved.