public class SpotinstComputer extends SlaveComputer
Computer.DisplayExecutor, Computer.TerminationRequest
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
BUILD, CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, EXTENDED_READ, nodeName, offlineCause, PERMISSIONS, SKIP_PERMISSION_CHECK, statusChangeLock, threadPoolForRemoting, transientActions
Constructor and Description |
---|
SpotinstComputer(SpotinstSlave slave) |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doDoDelete() |
long |
getLaunchTime() |
SpotinstSlave |
getNode() |
long |
getUptime() |
void |
resyncNode()
For SSH-connecting clouds, we initiate a
SpotinstComputer before we
have a valid SSH-launcher and Jenkins doesn't auto-sync the computer's launcher
(JNLP by default) when its corresponding SpotinstSlave launcher is updated. |
void |
setLaunchTime(long launchTime) |
void |
taskAccepted(Executor executor,
Queue.Task task) |
_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, 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 SpotinstComputer(SpotinstSlave slave)
public void taskAccepted(Executor executor, Queue.Task task)
taskAccepted
in interface ExecutorListener
taskAccepted
in class SlaveComputer
public long getLaunchTime()
public long getUptime()
public void setLaunchTime(long launchTime)
public SpotinstSlave getNode()
getNode
in class SlaveComputer
public org.kohsuke.stapler.HttpResponse doDoDelete() throws IOException
doDoDelete
in class Computer
IOException
public void resyncNode()
SpotinstComputer
before we
have a valid SSH-launcher and Jenkins doesn't auto-sync the computer's launcher
(JNLP by default) when its corresponding SpotinstSlave
launcher is updated.
Computer.setNode(Node)
calls SlaveComputer.grabLauncher(Node)
which will perform the required update.Copyright © 2016–2024. All rights reserved.