@Extension(ordinal=1.7976931348623157E308) @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public static class Computer.DisplayExecutor.InternalComputerListener extends ComputerListener
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) throws IOException, InterruptedException
ComputerListener
Computer
comes online.
This enables you to do some work on all the agents as they get connected.
Starting Hudson 1.312, this method is also invoked for the master, not just for agents.
onOnline
in class ComputerListener
listener
- This is connected to the launch log of the computer or Jenkins master.
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.IOException
- Exceptions will be recorded to the listener. Note that
throwing an exception doesn't put the computer offline.InterruptedException
- Exceptions will be recorded to the listener. Note that
throwing an exception doesn't put the computer offline.ComputerListener.preOnline(Computer, Channel, FilePath, TaskListener)
Copyright © 2004–2018. All rights reserved.