@Extension public static class Node.InternalComputerListener extends ComputerListener
Computer
.ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
InternalComputerListener() |
Modifier and Type | Method and Description |
---|---|
void |
onOnline(Computer c,
TaskListener listener)
Called right after a
Computer comes online. |
all, onConfigurationChange, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
public void onOnline(Computer c, TaskListener listener)
ComputerListener
Computer
comes online.
This enables you to do some work on all the slaves as they get connected.
Starting Hudson 1.312, this method is also invoked for the master, not just for slaves.
onOnline
in class ComputerListener
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.preOnline(Computer, Channel, FilePath, TaskListener)
Copyright © 2015. All rights reserved.