org.hudsonci.maven.plugin.install
Class SlaveBundleInstaller
java.lang.Object
hudson.slaves.ComputerListener
org.hudsonci.maven.plugin.install.SlaveBundleInstaller
- All Implemented Interfaces:
- hudson.ExtensionPoint, org.hudsonci.events.EventConsumer
@Named
@Singleton
public class SlaveBundleInstaller
- extends hudson.slaves.ComputerListener
- implements org.hudsonci.events.EventConsumer
Handles installation of the slave bundle.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
void |
consume(EventObject event)
Handles installation onto the master node. |
static hudson.FilePath |
getInstallRoot()
Get a reference to the installed bundle root. |
static hudson.FilePath |
getInstallRoot(hudson.model.Node node)
Get a reference to the installed bundle root. |
void |
preOnline(hudson.model.Computer c,
hudson.remoting.Channel channel,
hudson.FilePath root,
hudson.model.TaskListener listener)
Handles installation onto slave nodes. |
| Methods inherited from class hudson.slaves.ComputerListener |
all, onConfigurationChange, onOffline, onOnline, onOnline, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_PATH
public static final String BASE_PATH
- See Also:
- Constant Field Values
BUNDLE_ARCHIVE
public static final String BUNDLE_ARCHIVE
- See Also:
- Constant Field Values
SlaveBundleInstaller
public SlaveBundleInstaller()
consume
public void consume(EventObject event)
throws Exception
- Handles installation onto the master node.
- Specified by:
consume in interface org.hudsonci.events.EventConsumer
- Throws:
Exception
preOnline
public void preOnline(hudson.model.Computer c,
hudson.remoting.Channel channel,
hudson.FilePath root,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
- Handles installation onto slave nodes.
- Overrides:
preOnline in class hudson.slaves.ComputerListener
- Throws:
IOException
InterruptedException
getInstallRoot
public static hudson.FilePath getInstallRoot()
throws IOException,
InterruptedException
- Get a reference to the installed bundle root.
- Throws:
IOException
InterruptedException
getInstallRoot
public static hudson.FilePath getInstallRoot(hudson.model.Node node)
throws IOException,
InterruptedException
- Get a reference to the installed bundle root.
- Throws:
IOException
InterruptedException
Copyright © 2004-2011 Hudson. All Rights Reserved.