@Extension public class StandardOutputSwapper extends ComputerListener
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static boolean |
disabled |
| Constructor and Description |
|---|
StandardOutputSwapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
preOnline(Computer c,
hudson.remoting.Channel channel,
FilePath root,
TaskListener listener)
Called before a
Computer is marked online. |
all, onConfigurationChange, onLaunchFailure, onOffline, onOffline, onOnline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, register, unregisterpublic void preOnline(Computer c, hudson.remoting.Channel channel, FilePath root, TaskListener listener)
ComputerListenerComputer is marked online.
This enables you to do some work on all the slaves
as they get connected. Unlike ComputerListener.onOnline(Computer, TaskListener),
a failure to carry out this function normally will prevent
a computer from marked as online.
preOnline in class ComputerListenerchannel - This is the channel object to talk to the slave.
(This is the same object returned by Computer.getChannel() once
it's connected.root - The directory where this slave stores files.
The same as Node.getRootPath(), except that method returns
null until the slave is connected. So this parameter is passed explicitly instead.listener - This is connected to the launch log of the computer.
Since this method is called synchronously from the thread
that launches a computer, if this method performs a time-consuming
operation, this listener should be notified of the progress.
This is also a good listener for reporting problems.ComputerListener.onOnline(Computer, TaskListener)Copyright © 2019. All rights reserved.