org.jenkinsci.plugins.slave_setup
Class ComputerListenerImpl

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by org.jenkinsci.plugins.slave_setup.ComputerListenerImpl
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class ComputerListenerImpl
extends hudson.slaves.ComputerListener

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ComputerListenerImpl()
           
 
Method Summary
 void preLaunch(hudson.model.Computer c, hudson.model.TaskListener listener)
           
 void preOnline(hudson.model.Computer c, hudson.remoting.Channel channel, hudson.FilePath root, hudson.model.TaskListener listener)
          Prepares the slave before it gets online by copying the given content in root and executing the configured setup script.
 
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOffline, onOnline, onOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputerListenerImpl

public ComputerListenerImpl()
Method Detail

preLaunch

public void preLaunch(hudson.model.Computer c,
                      hudson.model.TaskListener listener)
               throws IOException,
                      InterruptedException
Overrides:
preLaunch in class hudson.slaves.ComputerListener
Throws:
IOException
InterruptedException

preOnline

public void preOnline(hudson.model.Computer c,
                      hudson.remoting.Channel channel,
                      hudson.FilePath root,
                      hudson.model.TaskListener listener)
               throws IOException,
                      InterruptedException
Prepares the slave before it gets online by copying the given content in root and executing the configured setup script.

Overrides:
preOnline in class hudson.slaves.ComputerListener
Parameters:
c - the computer to set up
channel - not used
root - the root of the slave
listener - log listener
Throws:
IOException
InterruptedException


Copyright © 2004-2014. All Rights Reserved.