public class JCloudsComputer extends hudson.slaves.AbstractCloudComputer<JCloudsSlave> implements org.jenkinsci.plugins.cloudstats.TrackedItem
SlaveComputer
- responsible for terminating an instance.Constructor and Description |
---|
JCloudsComputer(JCloudsSlave slave) |
Modifier and Type | Method and Description |
---|---|
void |
doConfigure(org.kohsuke.stapler.StaplerResponse rsp) |
org.kohsuke.stapler.HttpResponse |
doDoDelete() |
org.kohsuke.stapler.HttpRedirect |
doScheduleTermination() |
static List<JCloudsComputer> |
getAll()
Get all Openstack computers.
|
long |
getConnectedSince() |
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
getId() |
JCloudsSlave |
getNode() |
JCloudsRetentionStrategy |
getRetentionStrategy() |
boolean |
isAcceptingTasks() |
boolean |
isPendingDelete()
Is slave pending termination.
|
void |
setChannel(hudson.remoting.Channel channel,
OutputStream launchLog,
hudson.remoting.Channel.Listener listener) |
void |
setPendingDelete(boolean newVal)
Flag the slave to be collected asynchronously.
|
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, getDelegatedLauncher, getIcon, getJnlpJars, getJnlpMac, getLauncher, getListener, getLogRecords, getOSDescription, getResourceLoadingCount, getResourceLoadingTime, getSlaveVersion, getSystemInfoExtensions, grabLauncher, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, setChannel, setNode, taskAccepted, tryReconnect
_doScript, addAction, buildEnvironment, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, doChangeOfflineCause, doConfigDotXml, doConfigSubmit, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, 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
public JCloudsComputer(JCloudsSlave slave)
@Nonnull public static List<JCloudsComputer> getAll()
@CheckForNull public JCloudsSlave getNode()
getNode
in class hudson.slaves.AbstractCloudComputer<JCloudsSlave>
@Nonnull public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
getId
in interface org.jenkinsci.plugins.cloudstats.TrackedItem
public void setPendingDelete(boolean newVal)
public boolean isPendingDelete()
public JCloudsRetentionStrategy getRetentionStrategy()
getRetentionStrategy
in class hudson.slaves.SlaveComputer
public boolean isAcceptingTasks()
isAcceptingTasks
in class hudson.slaves.SlaveComputer
public void taskCompleted(hudson.model.Executor executor, hudson.model.Queue.Task task, long durationMS)
taskCompleted
in interface hudson.model.ExecutorListener
taskCompleted
in class hudson.slaves.SlaveComputer
public void taskCompletedWithProblems(hudson.model.Executor executor, hudson.model.Queue.Task task, long durationMS, Throwable problems)
taskCompletedWithProblems
in interface hudson.model.ExecutorListener
taskCompletedWithProblems
in class hudson.slaves.SlaveComputer
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public void doConfigure(org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doDoDelete()
doDoDelete
in class hudson.slaves.AbstractCloudComputer<JCloudsSlave>
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpRedirect doScheduleTermination()
public void setChannel(hudson.remoting.Channel channel, OutputStream launchLog, hudson.remoting.Channel.Listener listener) throws IOException, InterruptedException
setChannel
in class hudson.slaves.SlaveComputer
IOException
InterruptedException
public long getConnectedSince()
Copyright © 2016–2020. All rights reserved.