Package hudson.model
Class Node.InternalComputerListener
- java.lang.Object
-
- hudson.slaves.ComputerListener
-
- hudson.model.Node.InternalComputerListener
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- Node
@Extension public static class Node.InternalComputerListener extends ComputerListener
Let Nodes be aware of the lifecycle of their ownComputer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description InternalComputerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonOnline(Computer c, TaskListener listener)Called right after aComputercomes online.-
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
-
-
-
-
Method Detail
-
onOnline
public void onOnline(Computer c, TaskListener listener)
Description copied from class:ComputerListenerCalled right after aComputercomes online.This enables you to do some work on all the agents as they get connected. Any thrown
Exceptions will be recorded to the listener. NoExceptionwill put the computer offline, however anyErrorwill put the computer offline since they indicate unrecoverable conditions.Starting Hudson 1.312, this method is also invoked for the master, not just for agents.
- Overrides:
onOnlinein classComputerListenerlistener- 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.- See Also:
ComputerListener.preOnline(Computer, Channel, FilePath, TaskListener)
-
-