Class KubernetesComputer
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Computer
hudson.slaves.SlaveComputer
hudson.slaves.AbstractCloudComputer<KubernetesSlave>
org.csanchez.jenkins.plugins.kubernetes.KubernetesComputer
- All Implemented Interfaces:
ExtensionPoint
,DescriptorByNameOwner
,ExecutorListener
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
,HasWidgets
,org.kohsuke.stapler.StaplerProxy
- Author:
- Carlos Sanchez carlos@apache.org
-
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
annotateTtl
(TaskListener listener) void
doContainerLog
(String containerId, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) getACL()
List<io.fabric8.kubernetes.api.model.Container>
List<io.fabric8.kubernetes.api.model.Event>
boolean
void
setAcceptingTasks
(boolean acceptingTasks) void
setLaunching
(boolean launching) void
taskAccepted
(Executor executor, Queue.Task task) void
taskCompleted
(Executor executor, Queue.Task task, long durationMS) void
taskCompletedWithProblems
(Executor executor, Queue.Task task, long durationMS, Throwable problems) toString()
Methods inherited from class hudson.slaves.AbstractCloudComputer
doDoDelete, getNode
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, getRetentionStrategy, getSlaveVersion, getSystemInfoExtensions, getTarget, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setChannel, setChannel, setChannel, setChannel, setNode, 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, 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, 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
-
KubernetesComputer
-
-
Method Details
-
taskAccepted
- Specified by:
taskAccepted
in interfaceExecutorListener
- Overrides:
taskAccepted
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
-
getContainers
@Exported public List<io.fabric8.kubernetes.api.model.Container> getContainers() throws org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException, IOException- Throws:
org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException
IOException
-
getPodEvents
@Exported public List<io.fabric8.kubernetes.api.model.Event> getPodEvents() throws org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException, IOException- Throws:
org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException
IOException
-
doContainerLog
public void doContainerLog(@QueryParameter String containerId, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException, IOException - Throws:
org.jenkinsci.plugins.kubernetes.auth.KubernetesAuthException
IOException
-
toString
-
getACL
- Specified by:
getACL
in interfaceAccessControlled
- Overrides:
getACL
in classComputer
-
annotateTtl
-
setLaunching
public void setLaunching(boolean launching) -
isLaunching
public boolean isLaunching()- Returns:
- true if the Pod has been created in Kubernetes and the current instance is waiting for the pod to be usable.
-
setAcceptingTasks
public void setAcceptingTasks(boolean acceptingTasks) - Overrides:
setAcceptingTasks
in classSlaveComputer
-