org.jenkinsci.plugins.slave_setup
Class ComputerListenerImpl
java.lang.Object
hudson.slaves.ComputerListener
org.jenkinsci.plugins.slave_setup.ComputerListenerImpl
- All Implemented Interfaces:
- hudson.ExtensionPoint
@Extension
public class ComputerListenerImpl
- extends hudson.slaves.ComputerListener
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
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 |
ComputerListenerImpl
public ComputerListenerImpl()
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 upchannel - not usedroot - the root of the slavelistener - log listener
- Throws:
IOException
InterruptedException
Copyright © 2004-2014. All Rights Reserved.