public class ECSComputer extends SlaveComputer
Computer.DisplayExecutor, Computer.TerminationRequestModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItemBUILD, CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, EXTENDED_READ, EXTENDED_READ_AND_CONNECT, nodeName, offlineCause, PERMISSIONS, SKIP_PERMISSION_CHECK, statusChangeLock, threadPoolForRemoting, transientActions| Constructor and Description |
|---|
ECSComputer(ECSAbstractSlave slave) |
| Modifier and Type | Method and Description |
|---|---|
com.huaweicloud.sdk.ecs.v2.model.ServerDetail |
describeInstance()
Obtains the instance state description in ECS.
|
org.kohsuke.stapler.HttpResponse |
doDoDelete()
When the slave is deleted, terminate the instance.
|
VPC |
getCloud() |
String |
getEc2Type() |
String |
getInstanceId() |
ECSAbstractSlave |
getNode() |
String |
getRemoteAdmin()
What username to use to run root-like commands
|
String |
getRootCommandPrefix() |
String |
getSlaveCommandPrefix() |
String |
getSlaveCommandSuffix() |
ECSTemplate |
getSlaveTemplate() |
String |
getSpotInstanceRequestId() |
int |
getSshPort() |
String |
getStatus() |
long |
getUptime()
Number of milli-secs since the instance was started.
|
String |
getUptimeString()
Returns uptime in the human readable form.
|
void |
onConnected() |
com.huaweicloud.sdk.ecs.v2.model.ServerDetail |
updateInstanceDescription()
This will flush any cached description held by
describeInstance(). |
_connect, disconnect, doDoDisconnect, doJenkinsAgentJnlp, doLaunchSlaveAgent, doSlaveAgentJnlp, getAbsoluteRemoteFs, getAbsoluteRemotePath, getChannel, getChannelToMaster, getClassLoadingCount, getClassLoadingPrefetchCacheCount, getClassLoadingTime, getDefaultCharset, getDelegatedLauncher, getEnvVarsFull, getIcon, getJnlpJars, getJnlpMac, getLauncher, getListener, getLogRecords, getOSDescription, getResourceLoadingCount, getResourceLoadingTime, getRetentionStrategy, getSlaveVersion, getSystemInfoExtensions, getTarget, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, setChannel, setChannel, setChannel, setNode, taskAccepted, taskCompleted, taskCompletedWithProblems, tryReconnect_doScript, addAction, buildEnvironment, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, doChangeOfflineCause, doConfigDotXml, doConfigSubmit, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, doRssLatest, doScript, doScriptText, doToggleOffline, getACL, getActions, getAllExecutors, getApi, getAssignedLabels, getBuilds, getCaption, getComputerPanelBoxs, getConnectTime, getDemandStartMilliseconds, getDescription, getDisplayExecutors, getDisplayName, getEnvironment, getEnvVars, getExecutors, getHeapDump, getHostName, getIconAltText, getIconClassName, getIdleStartMilliseconds, getLoadStatistics, getLog, getLogDir, getLogFile, getLogText, getMonitorData, getName, getNumExecutors, getOfflineCause, getOfflineCauseReason, getOneOffExecutors, getSearchUrl, getSystemProperties, getTerminatedBy, getThreadDump, getTiedJobs, getTimeline, getUrl, getWorkspaceList, interrupt, isAlive, isIdle, isManualLaunchAllowed, isOffline, isOnline, isPartiallyIdle, isTemporarilyOffline, launch, onRemoved, recordTermination, relocateOldLogs, removeExecutor, resolveForCLI, setTemporarilyOffline, setTemporarilyOffline, updateByXml, waitUntilOffline, waitUntilOnlineaddOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActionsgetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2getDescriptorByNamepublic ECSComputer(ECSAbstractSlave slave)
public ECSAbstractSlave getNode()
getNode in class SlaveComputer@CheckForNull public String getInstanceId()
public String getEc2Type()
public String getSpotInstanceRequestId()
public VPC getCloud()
@CheckForNull public ECSTemplate getSlaveTemplate()
public com.huaweicloud.sdk.ecs.v2.model.ServerDetail describeInstance()
throws com.huaweicloud.sdk.core.exception.SdkException,
InterruptedException
This method returns a cached state, so it's not suitable to check ServerDetail.getStatus() from the returned
instance (but all the other fields are valid as it won't change.)
The cache can be flushed using updateInstanceDescription()
com.huaweicloud.sdk.core.exception.SdkExceptionInterruptedExceptionpublic com.huaweicloud.sdk.ecs.v2.model.ServerDetail updateInstanceDescription()
throws com.huaweicloud.sdk.core.exception.SdkException,
InterruptedException
describeInstance().com.huaweicloud.sdk.core.exception.SdkExceptionInterruptedExceptionpublic String getStatus() throws com.huaweicloud.sdk.core.exception.SdkException, InterruptedException
com.huaweicloud.sdk.core.exception.SdkExceptionInterruptedExceptionpublic long getUptime()
throws com.huaweicloud.sdk.core.exception.SdkException,
InterruptedException
com.huaweicloud.sdk.core.exception.SdkExceptionInterruptedExceptionpublic String getUptimeString() throws com.huaweicloud.sdk.core.exception.SdkException, InterruptedException
com.huaweicloud.sdk.core.exception.SdkExceptionInterruptedExceptionpublic org.kohsuke.stapler.HttpResponse doDoDelete()
throws IOException
doDoDelete in class ComputerIOException@CheckForNull public String getRemoteAdmin()
null if the associated Node is nullpublic int getSshPort()
public String getRootCommandPrefix()
public String getSlaveCommandPrefix()
public String getSlaveCommandSuffix()
public void onConnected()
Copyright © 2016–2021. All rights reserved.