Package hudson.node_monitors
Class NodeMonitorUpdater
java.lang.Object
hudson.slaves.ComputerListener
hudson.node_monitors.NodeMonitorUpdater
- All Implemented Interfaces:
ExtensionPoint
When an agent is connected, redo the node monitoring.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onOnline
(Computer c, TaskListener listener) Triggers the update with 5 seconds quiet period, to avoid triggering data check too often when multiple agents become online at about the same time.void
Indicates that the computer was marked as temporarily online by the administrator.Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onIdle, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, preLaunch, preOnline, register, unregister
-
Constructor Details
-
NodeMonitorUpdater
public NodeMonitorUpdater()
-
-
Method Details
-
onOnline
Triggers the update with 5 seconds quiet period, to avoid triggering data check too often when multiple agents become online at about the same time.- Overrides:
onOnline
in classComputerListener
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.- Throws:
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.- See Also:
-
onTemporarilyOnline
Description copied from class:ComputerListener
Indicates that the computer was marked as temporarily online by the administrator. This is the reverse operation ofComputerListener.onTemporarilyOffline(Computer, OfflineCause)
- Overrides:
onTemporarilyOnline
in classComputerListener
-