public static class Jenkins.MasterComputer extends Computer
Computer.DisplayExecutor, Computer.TerminationRequest
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier and Type | Field and Description |
---|---|
static hudson.remoting.LocalChannel |
localChannel
Deprecated.
as of 1.558
Use
FilePath.localChannel |
BUILD, CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, EXTENDED_READ, EXTENDED_READ_AND_CONNECT, nodeName, offlineCause, PERMISSIONS, SKIP_PERMISSION_CHECK, statusChangeLock, threadPoolForRemoting, transientActions
Modifier | Constructor and Description |
---|---|
protected |
MasterComputer() |
Modifier and Type | Method and Description |
---|---|
protected Future<?> |
_connect(boolean forceReconnect)
Allows implementing-classes to provide an implementation for the connect method.
|
void |
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts
config.xml submission, as well as serve it. |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts the update to the node configuration.
|
org.kohsuke.stapler.HttpResponse |
doDoDelete()
Report an error.
|
void |
doLaunchSlaveAgent(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
If
Computer.getChannel() ==null, attempts to relaunch the agent. |
String |
getCaption() |
hudson.remoting.VirtualChannel |
getChannel()
Gets the channel that can be used to run a program on this computer.
|
Charset |
getDefaultCharset()
Gets the default charset of this computer.
|
String |
getDisplayName() |
List<LogRecord> |
getLogRecords()
Gets the logs recorded by this agent.
|
String |
getName()
Returns "" to match with
AbstractCIBase.getNodeName() . |
RetentionStrategy |
getRetentionStrategy()
RetentionStrategy associated with this computer. |
String |
getUrl() |
boolean |
hasPermission(Permission permission)
Convenient short-cut for
getACL().hasPermission(permission) |
protected boolean |
isAlive()
Will always keep this guy alive so that it can function as a fallback to
execute
Queue.FlyweightTask s. |
boolean |
isConnecting()
Is a
Computer.connect(boolean) operation in progress? |
Boolean |
isUnix()
True if this computer is a Unix machine (as opposed to Windows machine).
|
_doScript, addAction, buildEnvironment, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, disconnect, doChangeOfflineCause, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, doRssLatest, doScript, doScriptText, doToggleOffline, getACL, getActions, getAllExecutors, getApi, getAssignedLabels, getBuilds, getComputerPanelBoxs, getConnectTime, getDemandStartMilliseconds, getDescription, getDisplayExecutors, getEnvironment, getEnvVars, getExecutors, getHeapDump, getHostName, getIcon, getIconAltText, getIconClassName, getIdleStartMilliseconds, getLoadStatistics, getLog, getLogDir, getLogFile, getLogText, getMonitorData, getNode, getNumExecutors, getOfflineCause, getOfflineCauseReason, getOneOffExecutors, getSearchUrl, getSystemProperties, getTarget, getTerminatedBy, getThreadDump, getTiedJobs, getTimeline, getWorkspaceList, interrupt, isAcceptingTasks, isIdle, isJnlpAgent, isLaunchSupported, isManualLaunchAllowed, isOffline, isOnline, isPartiallyIdle, isTemporarilyOffline, kill, launch, onRemoved, recordTermination, relocateOldLogs, removeExecutor, resolveForCLI, setNode, setTemporarilyOffline, setTemporarilyOffline, taskAccepted, taskCompleted, taskCompletedWithProblems, 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
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission2
getDescriptorByName
@Deprecated public static final hudson.remoting.LocalChannel localChannel
FilePath.localChannel
LocalChannel
instance that can be used to execute programs locally.public String getName()
AbstractCIBase.getNodeName()
.public boolean isConnecting()
Computer
Computer.connect(boolean)
operation in progress?isConnecting
in class Computer
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class Computer
public String getCaption()
getCaption
in class Computer
public RetentionStrategy getRetentionStrategy()
Computer
RetentionStrategy
associated with this computer.getRetentionStrategy
in class Computer
RetentionStrategy<? super T>
where
T=this.getClass()
.protected boolean isAlive()
Queue.FlyweightTask
s. See JENKINS-7291.public Boolean isUnix()
Computer
public org.kohsuke.stapler.HttpResponse doDoDelete() throws IOException
doDoDelete
in class Computer
IOException
@POST public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException
Computer
doConfigSubmit
in class Computer
IOException
javax.servlet.ServletException
Descriptor.FormException
@WebMethod(name="config.xml") public void doConfigDotXml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
Computer
config.xml
submission, as well as serve it.doConfigDotXml
in class Computer
IOException
javax.servlet.ServletException
public boolean hasPermission(Permission permission)
AccessControlled
getACL().hasPermission(permission)
public hudson.remoting.VirtualChannel getChannel()
Computer
getChannel
in class Computer
Computer.isOffline()
==false.public Charset getDefaultCharset()
Computer
getDefaultCharset
in class Computer
Computer.isOffline()
==false.public List<LogRecord> getLogRecords() throws IOException, InterruptedException
Computer
getLogRecords
in class Computer
IOException
InterruptedException
public void doLaunchSlaveAgent(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
Computer
Computer.getChannel()
==null, attempts to relaunch the agent.doLaunchSlaveAgent
in class Computer
IOException
javax.servlet.ServletException
protected Future<?> _connect(boolean forceReconnect)
Computer
If already connected or if this computer doesn't support proactive launching, no-op. This method may return immediately while the launch operation happens asynchronously.
_connect
in class Computer
forceReconnect
- If true and a connect activity is already in progress, it will be cancelled and
the new one will be started. If false, and a connect activity is already in progress, this method
will do nothing and just return the pending connection operation.Future
representing pending completion of the task. The 'completion' includes
both a successful completion and a non-successful completion (such distinction typically doesn't
make much sense because as soon as Computer
is connected it can be disconnected by some other threads.)Computer.disconnect()
Copyright © 2004–2021. All rights reserved.