hudson.model
Class Node.InternalComputerListener

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by 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 own Computer.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
Node.InternalComputerListener()
           
 
Method Summary
 void onOnline(Computer c, TaskListener listener)
          Called right after a Computer comes online.
 
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node.InternalComputerListener

public Node.InternalComputerListener()
Method Detail

onOnline

public void onOnline(Computer c,
                     TaskListener listener)
Description copied from class: ComputerListener
Called right after a Computer comes online.

This enables you to do some work on all the slaves as they get connected.

Starting Hudson 1.312, this method is also invoked for the master, not just for slaves.

Overrides:
onOnline in class ComputerListener
listener - This is connected to the launch log of the computer. 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)


Copyright © 2004-2013. All Rights Reserved.