@Extension public class NodeLabelCache extends ComputerListener
While it would be nice to have a single implementation extending both FindLabels and ComputerListener, because Jenkins uses subclassing it is not easy to do so. Instead we provide a static cache which the LabelFinder in our package can read.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
NodeLabelCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
onOnline(Computer computer,
TaskListener listener)
When a computer comes online, probe it for its platform labels.
|
all, onConfigurationChange, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregisterpublic void onOnline(Computer computer, TaskListener listener) throws IOException, InterruptedException
onOnline in class ComputerListenerIOExceptionInterruptedExceptionCopyright © 2016–2018. All rights reserved.