org.jvnet.hudson.plugins.platformlabeler
Class NodeLabelCache

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by org.jvnet.hudson.plugins.platformlabeler.NodeLabelCache
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class NodeLabelCache
extends hudson.slaves.ComputerListener

A cache of Node labels. While it would be nice to have a single implementation extending both FindLabels and ComputerListener, because Hudson uses subclassing its not easy to do so. Instead we provide a static cache which the LabelFinder in our package can read.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
NodeLabelCache()
           
 
Method Summary
 void onOnline(hudson.model.Computer computer, hudson.model.TaskListener listener)
          When a computer comes online, probe it for its platform labels.
 
Methods inherited from class hudson.slaves.ComputerListener
all, onOffline, onOnline, preOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLabelCache

public NodeLabelCache()
Method Detail

onOnline

public void onOnline(hudson.model.Computer computer,
                     hudson.model.TaskListener listener)
              throws java.io.IOException,
                     java.lang.InterruptedException
When a computer comes online, probe it for its platform labels.

Overrides:
onOnline in class hudson.slaves.ComputerListener
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.