hudson.plugins.virtualbox
Class VirtualBoxComputerLauncher

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>
      extended by hudson.slaves.ComputerLauncher
          extended by hudson.plugins.virtualbox.VirtualBoxComputerLauncher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.ComputerLauncher>

public class VirtualBoxComputerLauncher
extends hudson.slaves.ComputerLauncher

ComputerLauncher for VirtualBox that waits for the instance to really come up before processing to the real user-specified ComputerLauncher.

TODO check relaunch during launch

Author:
Evgeny Mandrikov

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
 
Constructor Summary
VirtualBoxComputerLauncher(hudson.slaves.ComputerLauncher delegate)
           
 
Method Summary
 void afterDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
           
 void beforeDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
           
protected  boolean delegateLaunch(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
           
 hudson.slaves.ComputerLauncher getCore()
           
 hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()
           
 void launch(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
           
 
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, isLaunchSupported, launch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualBoxComputerLauncher

public VirtualBoxComputerLauncher(hudson.slaves.ComputerLauncher delegate)
Parameters:
delegate - real user-specified ComputerLauncher.
Method Detail

launch

public void launch(hudson.slaves.SlaveComputer computer,
                   hudson.model.TaskListener listener)
            throws IOException,
                   InterruptedException
Overrides:
launch in class hudson.slaves.ComputerLauncher
Throws:
IOException
InterruptedException

delegateLaunch

protected boolean delegateLaunch(hudson.slaves.SlaveComputer computer,
                                 hudson.model.TaskListener listener)
Parameters:
computer - Computer for which agent should be launched
listener - The progress of the launch, as well as any error, should be sent to this listener.
Returns:
true, if successfully launched, otherwise false

beforeDisconnect

public void beforeDisconnect(hudson.slaves.SlaveComputer computer,
                             hudson.model.TaskListener listener)
Overrides:
beforeDisconnect in class hudson.slaves.ComputerLauncher

afterDisconnect

public void afterDisconnect(hudson.slaves.SlaveComputer computer,
                            hudson.model.TaskListener listener)
Overrides:
afterDisconnect in class hudson.slaves.ComputerLauncher

getCore

public hudson.slaves.ComputerLauncher getCore()
Returns:
delegation target

getDescriptor

public hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.slaves.ComputerLauncher>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>


Copyright © 2004-2013. All Rights Reserved.