Class JCloudsComputer
java.lang.Object
- All Implemented Interfaces:
ExtensionPoint
,DescriptorByNameOwner
,ExecutorListener
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
,HasWidgets
,org.jenkinsci.plugins.cloudstats.TrackedItem
,org.kohsuke.stapler.StaplerProxy
public class JCloudsComputer
extends AbstractCloudComputer<JCloudsSlave>
implements org.jenkinsci.plugins.cloudstats.TrackedItem
OpenStack version of Jenkins
SlaveComputer
- responsible for terminating an instance.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Computer
Computer.DisplayExecutor, Computer.TerminationRequest
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
Field Summary
Fields inherited from class hudson.slaves.SlaveComputer
ALLOW_UNSUPPORTED_REMOTING_VERSIONS
Fields inherited from class hudson.model.Computer
BUILD, CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, EXTENDED_READ, EXTENDED_READ_AND_CONNECT, nodeName, offlineCause, PERMISSIONS, SKIP_PERMISSION_CHECK, statusChangeLock, threadPoolForRemoting, transientActions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doConfigure
(org.kohsuke.stapler.StaplerResponse rsp) org.kohsuke.stapler.HttpResponse
org.kohsuke.stapler.HttpRedirect
static List<JCloudsComputer>
getAll()
Get all Openstack computers.long
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id
getId()
getNode()
boolean
boolean
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
(Executor executor, Queue.Task task, long durationMS) void
taskCompletedWithProblems
(Executor executor, Queue.Task task, long durationMS, Throwable problems) Methods inherited from class hudson.slaves.SlaveComputer
_connect, disconnect, doDoDisconnect, doJenkinsAgentJnlp, doLaunchSlaveAgent, doSlaveAgentJnlp, doSubmitDescription, getAbsoluteRemoteFs, getAbsoluteRemotePath, getChannel, getChannelToMaster, getClassLoadingCount, getClassLoadingPrefetchCacheCount, getClassLoadingTime, getDefaultCharset, getDelegatedLauncher, getEnvVarsFull, getIconClassName, getJnlpJars, getJnlpMac, getLauncher, getListener, getLogRecords, getOSDescription, getResourceLoadingCount, getResourceLoadingTime, getSlaveVersion, getSystemInfoExtensions, getTarget, grabLauncher, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, setChannel, setChannel, setNode, taskAccepted, taskStarted, tryReconnect
Methods inherited from class hudson.model.Computer
_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, getIcon, getIconAltText, 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
Methods inherited from class hudson.model.Actionable
addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
Methods inherited from interface jenkins.widgets.HasWidgets
getWidget, getWidgets
-
Constructor Details
-
JCloudsComputer
-
-
Method Details
-
getAll
Get all Openstack computers. -
getNode
- Overrides:
getNode
in classAbstractCloudComputer<JCloudsSlave>
-
getId
@Nonnull public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()- Specified by:
getId
in interfaceorg.jenkinsci.plugins.cloudstats.TrackedItem
-
setPendingDelete
public void setPendingDelete(boolean newVal) Flag the slave to be collected asynchronously. -
isPendingDelete
public boolean isPendingDelete()Is slave pending termination. -
getRetentionStrategy
- Overrides:
getRetentionStrategy
in classSlaveComputer
-
isAcceptingTasks
public boolean isAcceptingTasks()- Overrides:
isAcceptingTasks
in classSlaveComputer
-
taskCompleted
- Specified by:
taskCompleted
in interfaceExecutorListener
- Overrides:
taskCompleted
in classSlaveComputer
-
taskCompletedWithProblems
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems) - Specified by:
taskCompletedWithProblems
in interfaceExecutorListener
- Overrides:
taskCompletedWithProblems
in classSlaveComputer
-
doConfigure
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public void doConfigure(org.kohsuke.stapler.StaplerResponse rsp) throws IOException - Throws:
IOException
-
doDoDelete
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doDoDelete()- Overrides:
doDoDelete
in classAbstractCloudComputer<JCloudsSlave>
-
doScheduleTermination
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpRedirect doScheduleTermination() -
setChannel
public void setChannel(hudson.remoting.Channel channel, OutputStream launchLog, hudson.remoting.Channel.Listener listener) throws IOException, InterruptedException - Overrides:
setChannel
in classSlaveComputer
- Throws:
IOException
InterruptedException
-
getConnectedSince
public long getConnectedSince()
-