org.jvnet.hudson.plugins.monitoring
Class NodesListener

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

public class NodesListener
extends hudson.slaves.ComputerListener

Listener of nodes to update data when nodes become online or offline without waiting 1 minute.

Author:
Emeric Vernat

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
NodesListener(NodesCollector nodesCollector)
           
 
Method Summary
 void onOffline(hudson.model.Computer c)
          
 void onOnline(hudson.model.Computer c, hudson.model.TaskListener listener)
          
 
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onOnline, preOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesListener

public NodesListener(NodesCollector nodesCollector)
Method Detail

onOnline

public void onOnline(hudson.model.Computer c,
                     hudson.model.TaskListener listener)
              throws java.io.IOException,
                     java.lang.InterruptedException

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

onOffline

public void onOffline(hudson.model.Computer c)

Overrides:
onOffline in class hudson.slaves.ComputerListener


Copyright © 2009-2011. All Rights Reserved.