public class OneShotComputer<S extends OneShotSlave>
extends hudson.slaves.SlaveComputer
| Constructor and Description |
|---|
OneShotComputer(S slave) |
| Modifier and Type | Method and Description |
|---|---|
hudson.model.TaskListener |
getListener() |
S |
getNode() |
boolean |
isActuallyOffline() |
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. |
protected void |
removeExecutor(hudson.model.Executor e) |
void |
setChannel(hudson.remoting.Channel channel,
OutputStream launchLog,
hudson.remoting.Channel.Listener listener) |
void |
setListener(hudson.model.TaskListener listener) |
protected void |
terminate(hudson.model.TaskListener listener)
Implement can override this method to cleanly terminate the executor and cleanup resources.
|
_connect, disconnect, doDoDisconnect, doLaunchSlaveAgent, doSlaveAgentJnlp, getAbsoluteRemoteFs, getChannel, getChannelToMaster, getClassLoadingCount, getClassLoadingPrefetchCacheCount, getClassLoadingTime, getDefaultCharset, getIcon, getJnlpJars, getJnlpMac, getLauncher, getLogRecords, getOSDescription, getResourceLoadingCount, getResourceLoadingTime, getRetentionStrategy, getSlaveVersion, getSystemInfoExtensions, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, 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, isAlive, isIdle, isManualLaunchAllowed, isOnline, isPartiallyIdle, isTemporarilyOffline, launch, onRemoved, recordTermination, relocateOldLogs, resolveForCLI, setTemporarilyOffline, setTemporarilyOffline, updateByXml, waitUntilOffline, waitUntilOnlinedoContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceActionpublic OneShotComputer(S slave)
public S getNode()
getNode in class hudson.slaves.SlaveComputerpublic boolean isOffline()
Run is created, then can actually
launch and report provisioning status in the build log.isOffline in class hudson.model.Computerpublic boolean isActuallyOffline()
protected final void removeExecutor(hudson.model.Executor e)
removeExecutor in class hudson.model.Computerprotected void terminate(hudson.model.TaskListener listener)
throws Exception
listener - build log so one can report proper terminationExceptionpublic void setChannel(hudson.remoting.Channel channel,
OutputStream launchLog,
hudson.remoting.Channel.Listener listener)
throws IOException,
InterruptedException
setChannel in class hudson.slaves.SlaveComputerIOExceptionInterruptedExceptionpublic void setListener(hudson.model.TaskListener listener)
public hudson.model.TaskListener getListener()
getListener in class hudson.slaves.SlaveComputerCopyright © 2016. All rights reserved.