public class OneShotComputer
extends hudson.slaves.SlaveComputer
Modifier and Type | Field and Description |
---|---|
static hudson.slaves.ComputerListener |
COMPUTER_LISTENER |
Constructor and Description |
---|
OneShotComputer(OneShotSlave slave) |
Modifier and Type | Method and Description |
---|---|
Charset |
getDefaultCharset()
$
Computer.getDefaultCharset() is the first computer method used by
$Run.execute(Run.RunExecution) when a job is executed. |
boolean |
isActuallyOffline() |
protected boolean |
isAlive() |
boolean |
isOffline()
Claim we are online so we get task assigned to the executor, so a $
Run is created, then can actually
launch and report provisioning status in the build log. |
_connect, disconnect, doDoDisconnect, doLaunchSlaveAgent, doSlaveAgentJnlp, getAbsoluteRemoteFs, getChannel, getChannelToMaster, getClassLoadingCount, getClassLoadingPrefetchCacheCount, getClassLoadingTime, getIcon, getJnlpJars, getJnlpMac, getLauncher, getLogRecords, getNode, getOSDescription, getResourceLoadingCount, getResourceLoadingTime, getRetentionStrategy, getSlaveVersion, getSystemInfoExtensions, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, setChannel, setChannel, setNode, taskAccepted, taskCompleted, taskCompletedWithProblems, tryReconnect
_doScript, addAction, buildEnvironment, checkPermission, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, doChangeOfflineCause, doConfigDotXml, doConfigSubmit, doDoDelete, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, doScript, doScriptText, doToggleOffline, getACL, getActions, getApi, getBuilds, getCaption, getComputerPanelBoxs, getConnectTime, getDemandStartMilliseconds, 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, hasPermission, interrupt, isIdle, isManualLaunchAllowed, isOnline, isPartiallyIdle, isTemporarilyOffline, launch, onRemoved, recordTermination, relocateOldLogs, resolveForCLI, setTemporarilyOffline, setTemporarilyOffline, updateByXml, waitUntilOffline, waitUntilOnline
doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceAction
@Extension public static final hudson.slaves.ComputerListener COMPUTER_LISTENER
public OneShotComputer(OneShotSlave slave)
public boolean isOffline()
Run
is created, then can actually
launch and report provisioning status in the build log.isOffline
in class hudson.model.Computer
public boolean isActuallyOffline()
protected boolean isAlive()
isAlive
in class hudson.model.Computer
public Charset getDefaultCharset()
Computer.getDefaultCharset()
is the first computer method used by
$Run.execute(Run.RunExecution)
when a job is executed.
Relying on this implementation detail is fragile, but we don't really have a better
option yet.getDefaultCharset
in class hudson.slaves.SlaveComputer
Copyright © 2016. All rights reserved.