|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Computer
jenkins.model.Jenkins.MasterComputer
public static class Jenkins.MasterComputer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
|---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
| Field Summary | |
|---|---|
static hudson.remoting.LocalChannel |
localChannel
LocalChannel instance that can be used to execute programs locally. |
| Fields inherited from class hudson.model.Computer |
|---|
CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, nodeName, offlineCause, PERMISSIONS, statusChangeLock, threadPoolForRemoting, transientActions |
| Constructor Summary | |
|---|---|
protected |
Jenkins.MasterComputer()
|
| Method Summary | |
|---|---|
protected Future<?> |
_connect(boolean forceReconnect)
Allows implementing-classes to provide an implementation for the connect method. |
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 slave 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 slave. |
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.FlyweightTasks. |
boolean |
isConnecting()
Is a Computer.connect(boolean) operation in progress? |
| Methods inherited from class hudson.model.Actionable |
|---|
doContextMenu, getAction, getAction, getActions, getDynamic |
| 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 |
| Field Detail |
|---|
public static final hudson.remoting.LocalChannel localChannel
LocalChannel instance that can be used to execute programs locally.
| Constructor Detail |
|---|
protected Jenkins.MasterComputer()
| Method Detail |
|---|
public String getName()
AbstractCIBase.getNodeName().
getName in class Computerpublic boolean isConnecting()
ComputerComputer.connect(boolean) operation in progress?
isConnecting in class Computerpublic String getDisplayName()
getDisplayName in interface ModelObjectgetDisplayName in class Computerpublic String getCaption()
getCaption in class Computerpublic String getUrl()
getUrl in class Computerpublic RetentionStrategy getRetentionStrategy()
ComputerRetentionStrategy associated with this computer.
getRetentionStrategy in class ComputerRetentionStrategy<? super T> where
T=this.getClass().protected boolean isAlive()
Queue.FlyweightTasks. See JENKINS-7291.
isAlive in class Computer
public org.kohsuke.stapler.HttpResponse doDoDelete()
throws IOException
doDoDelete in class ComputerIOException
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
Computer
doConfigSubmit in class ComputerIOException
javax.servlet.ServletException
Descriptor.FormExceptionpublic boolean hasPermission(Permission permission)
AccessControlledgetACL().hasPermission(permission)
hasPermission in interface AccessControlledhasPermission in class Computerpublic hudson.remoting.VirtualChannel getChannel()
Computer
getChannel in class ComputerComputer.isOffline()==false.public Charset getDefaultCharset()
Computer
getDefaultCharset in class ComputerComputer.isOffline()==false.
public List<LogRecord> getLogRecords()
throws IOException,
InterruptedException
Computer
getLogRecords in class ComputerIOException
InterruptedException
public void doLaunchSlaveAgent(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
ComputerComputer.getChannel()==null, attempts to relaunch the slave agent.
doLaunchSlaveAgent in class ComputerIOException
javax.servlet.ServletExceptionprotected Future<?> _connect(boolean forceReconnect)
ComputerIf 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 ComputerforceReconnect - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||