public abstract class ECSAbstractSlave extends Slave
Modifier and Type | Class and Description |
---|---|
static class |
ECSAbstractSlave.DescriptorImpl |
Slave.JnlpJar, Slave.SlaveDescriptor
Node.InternalComputerListener, Node.Mode
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
String |
cloudName |
String |
idleTerminationMinutes |
String |
initScript |
boolean |
isConnected |
protected com.huaweicloud.sdk.ecs.v2.model.ServerDetail |
lastFetchInstance |
protected long |
lastFetchTime |
protected int |
launchTimeout |
protected static long |
MIN_FETCH_TIME |
String |
remoteAdmin |
String |
slaveCommandPrefix |
String |
slaveCommandSuffix |
boolean |
stopOnTerminate |
List<ECSTag> |
tags |
String |
templateDescription |
protected ResettableCountDownLatch |
terminateScheduled
Terminate was scheduled
|
String |
tmpDir |
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
Constructor and Description |
---|
ECSAbstractSlave(String name,
String instanceId,
String templateDescription,
String remoteFS,
int numExecutors,
Node.Mode mode,
String labelString,
List<? extends NodeProperty<?>> nodeProperties,
String remoteAdmin,
List<ECSTag> tags,
String cloudName,
String idleTerminationMinutes,
ComputerLauncher launcher,
int launchTimeout,
String initScript,
String tmpDir,
RetentionStrategy<ECSComputer> retentionStrategy,
boolean stopOnTerminate) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearLiveInstanceData() |
Computer |
createComputer() |
protected void |
fetchLiveInstanceData(boolean force) |
Secret |
getAdminPassword() |
int |
getBootDelay() |
VPC |
getCloud() |
long |
getCreatedTime() |
abstract String |
getECSType() |
String |
getInstanceId() |
long |
getLaunchTimeoutInMillis() |
String |
getRemoteAdmin() |
int |
getSshPort() |
boolean |
getStopOnTerminate() |
List<ECSTag> |
getTags() |
boolean |
isAcceptingTasks() |
protected boolean |
isAlive(boolean force) |
boolean |
isAllowSelfSignedCertificate() |
boolean |
isSpecifyPassword() |
boolean |
isUseHTTPS() |
void |
onConnected() |
protected void |
pushLiveInstanceData() |
protected Object |
readResolve() |
Node |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
abstract void |
terminate()
Terminates the instance in ECS.
|
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, 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, 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, hasPermission2
public final String initScript
public final String tmpDir
public final String remoteAdmin
public final String templateDescription
public boolean isConnected
public final String cloudName
public final String idleTerminationMinutes
public final boolean stopOnTerminate
public transient String slaveCommandPrefix
public transient String slaveCommandSuffix
protected transient com.huaweicloud.sdk.ecs.v2.model.ServerDetail lastFetchInstance
protected transient long lastFetchTime
protected final int launchTimeout
protected transient ResettableCountDownLatch terminateScheduled
protected static final long MIN_FETCH_TIME
public ECSAbstractSlave(String name, String instanceId, String templateDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, List<? extends NodeProperty<?>> nodeProperties, String remoteAdmin, List<ECSTag> tags, String cloudName, String idleTerminationMinutes, ComputerLauncher launcher, int launchTimeout, String initScript, String tmpDir, RetentionStrategy<ECSComputer> retentionStrategy, boolean stopOnTerminate) throws Descriptor.FormException, IOException
Descriptor.FormException
IOException
protected Object readResolve()
readResolve
in class Slave
public String getInstanceId()
public VPC getCloud()
public boolean getStopOnTerminate()
public Computer createComputer()
createComputer
in class Slave
public abstract void terminate()
public abstract String getECSType()
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 boolean isAcceptingTasks()
isAcceptingTasks
in class Node
public String getRemoteAdmin()
public int getSshPort()
public void onConnected()
protected boolean isAlive(boolean force)
protected void fetchLiveInstanceData(boolean force) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
protected void clearLiveInstanceData() throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
protected void pushLiveInstanceData() throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public long getCreatedTime()
public Secret getAdminPassword()
public boolean isUseHTTPS()
public int getBootDelay()
public boolean isSpecifyPassword()
public boolean isAllowSelfSignedCertificate()
public long getLaunchTimeoutInMillis()
Copyright © 2016–2021. All rights reserved.