public abstract class ECSAbstractSlave extends Slave
| Modifier and Type | Class and Description |
|---|---|
static class |
ECSAbstractSlave.DescriptorImpl |
Slave.JnlpJar, Slave.SlaveDescriptorNode.InternalComputerListener, Node.ModeExtensionPoint.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, toStringcanTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, isHoldOffLaunchUntilSave, save, toComputergetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2public 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.FormExceptionIOExceptionprotected Object readResolve()
readResolve in class Slavepublic String getInstanceId()
public VPC getCloud()
public boolean getStopOnTerminate()
public Computer createComputer()
createComputer in class Slavepublic 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 NodeDescriptor.FormExceptionpublic boolean isAcceptingTasks()
isAcceptingTasks in class Nodepublic 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.SdkExceptionprotected void clearLiveInstanceData()
throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkExceptionprotected void pushLiveInstanceData()
throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkExceptionpublic 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.