public class ForemanComputer extends hudson.slaves.AbstractCloudComputer<ForemanSharedNode>
| Constructor and Description |
|---|
ForemanComputer(ForemanSharedNode slave)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigure(org.kohsuke.stapler.StaplerResponse rsp) |
void |
eagerlyReturnNodeLater()
We want to eagerly return current instance of
ForemanComputer in an asynchronous thread. |
static void |
eagerlyReturnNodeLater(hudson.model.Computer computer)
We want to eagerly return the node to Foreman in an asynchronous thread.
|
ForemanSharedNode |
getNode() |
boolean |
isPendingDelete()
Is slave pending termination.
|
boolean |
setPendingDelete(boolean newStatus)
Flag the slave to be removed
|
void |
taskCompleted(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS) |
void |
taskCompletedWithProblems(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS,
Throwable problems) |
_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, setChannel, setNode, taskAccepted, tryReconnect_doScript, addAction, buildEnvironment, checkPermission, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, doChangeOfflineCause, doConfigDotXml, doConfigSubmit, 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, getLogFile, getLogText, getMonitorData, getName, getNumExecutors, getOfflineCause, getOfflineCauseReason, getOneOffExecutors, getSearchUrl, getSystemProperties, getTerminatedBy, getThreadDump, getTiedJobs, getTimeline, getUrl, getWorkspaceList, hasPermission, interrupt, isAlive, isIdle, isManualLaunchAllowed, isOffline, isOnline, isPartiallyIdle, isTemporarilyOffline, launch, onRemoved, recordTermination, relocateOldLogs, resolveForCLI, setTemporarilyOffline, setTemporarilyOffline, updateByXml, waitUntilOffline, waitUntilOnlinedoContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceActionpublic ForemanComputer(ForemanSharedNode slave)
slave - Foreman slave ForemanSharedNode.public void taskCompleted(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS)
taskCompleted in interface hudson.model.ExecutorListenertaskCompleted in class hudson.slaves.SlaveComputerpublic void taskCompletedWithProblems(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS,
Throwable problems)
taskCompletedWithProblems in interface hudson.model.ExecutorListenertaskCompletedWithProblems in class hudson.slaves.SlaveComputerpublic ForemanSharedNode getNode()
getNode in class hudson.slaves.AbstractCloudComputer<ForemanSharedNode>public static void eagerlyReturnNodeLater(hudson.model.Computer computer)
computer - The Computer.public void eagerlyReturnNodeLater()
ForemanComputer in an asynchronous thread.@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class)
public void doConfigure(org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic boolean isPendingDelete()
public boolean setPendingDelete(boolean newStatus)
newStatus - The new statusCopyright © 2016. All rights reserved.