org.hudsonci.maven.plugin.install
Class SlaveBundleInstaller

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by org.hudsonci.maven.plugin.install.SlaveBundleInstaller
All Implemented Interfaces:
ExtensionPoint, EventConsumer

@Named
@Singleton
public class SlaveBundleInstaller
extends ComputerListener
implements EventConsumer

Handles installation of the slave bundle.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String BASE_PATH
           
static String BUNDLE_ARCHIVE
           
 
Constructor Summary
SlaveBundleInstaller()
           
 
Method Summary
 void consume(EventObject event)
          Handles installation onto the master node.
static FilePath getInstallRoot()
          Get a reference to the installed bundle root.
static FilePath getInstallRoot(Node node)
          Get a reference to the installed bundle root.
 void preOnline(Computer c, Channel channel, FilePath root, 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
 

Field Detail

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
Constructor Detail

SlaveBundleInstaller

public SlaveBundleInstaller()
Method Detail

consume

public void consume(EventObject event)
             throws Exception
Handles installation onto the master node.

Specified by:
consume in interface EventConsumer
Throws:
Exception

preOnline

public void preOnline(Computer c,
                      Channel channel,
                      FilePath root,
                      TaskListener listener)
               throws IOException,
                      InterruptedException
Handles installation onto slave nodes.

Overrides:
preOnline in class ComputerListener
Throws:
IOException
InterruptedException

getInstallRoot

public static FilePath getInstallRoot()
                               throws IOException,
                                      InterruptedException
Get a reference to the installed bundle root.

Throws:
IOException
InterruptedException

getInstallRoot

public static FilePath getInstallRoot(Node node)
                               throws IOException,
                                      InterruptedException
Get a reference to the installed bundle root.

Throws:
IOException
InterruptedException


Copyright © 2004-2011 Hudson. All Rights Reserved.