public class JCloudsComputer extends AbstractCloudComputer<JCloudsSlave> implements org.jenkinsci.plugins.cloudstats.TrackedItem
SlaveComputer
- responsible for terminating an instance.Computer.DisplayExecutor, Computer.TerminationRequest
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
BUILD, CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, EXTENDED_READ, EXTENDED_READ_AND_CONNECT, nodeName, offlineCause, PERMISSIONS, SKIP_PERMISSION_CHECK, statusChangeLock, threadPoolForRemoting, transientActions
Constructor and Description |
---|
JCloudsComputer(JCloudsSlave slave) |
Modifier and Type | Method and Description |
---|---|
void |
deleteSlave()
Delete the slave, terminate or suspend the instance.
|
void |
deleteSlave(boolean logging)
Delete the slave, terminate or suspend the instance.
|
HttpResponse |
doDoDelete()
Deletes a jenkins slave node.
|
String |
getCloudName() |
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
getId() |
String |
getInstanceId() |
String |
getPrivateIpAddresses() |
String |
getPrivateIpAddressHeader() |
String |
getPublicIpAddresses() |
String |
getPublicIpAddressHeader() |
int |
getRetentionTime() |
getNode
_connect, disconnect, doDoDisconnect, 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, waitUntilOnline
addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission
getDescriptorByName
public JCloudsComputer(JCloudsSlave slave)
public String getInstanceId()
public int getRetentionTime()
@CheckForNull public String getCloudName()
public HttpResponse doDoDelete() throws IOException
JCloudsCleanupThread
.
If called again after already being marked, the deletion is
performed immediately.doDoDelete
in class AbstractCloudComputer<JCloudsSlave>
IOException
public void deleteSlave() throws IOException, InterruptedException
JCloudsSlave._terminate(hudson.model.TaskListener)
InterruptedException
- if the deletion gets interrupted.IOException
- if an error occurs.public void deleteSlave(boolean logging)
deleteSlave()
, but catching all exceptions and logging the if desired.logging
- true
, if exception logging is desired.public String getPublicIpAddressHeader()
public String getPrivateIpAddressHeader()
public String getPublicIpAddresses()
public String getPrivateIpAddresses()
@Nullable public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
getId
in interface org.jenkinsci.plugins.cloudstats.TrackedItem
Copyright © 2016–2021. All rights reserved.