Package hudson.plugins.libvirt
Class VirtualMachineLauncher
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ComputerLauncher>
-
- hudson.slaves.ComputerLauncher
-
- hudson.plugins.libvirt.VirtualMachineLauncher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ComputerLauncher>
public class VirtualMachineLauncher extends ComputerLauncher
- Author:
- Marco Mornati, Philipp Bartsch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineLauncher(ComputerLauncher delegate, String hypervisorDescription, String virtualMachineName, int waitingTimeSecs, int timesToRetryOnFailure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterDisconnect(SlaveComputer slaveComputer, TaskListener taskListener)
void
beforeDisconnect(SlaveComputer slaveComputer, TaskListener taskListener)
Hypervisor
findOurHypervisorInstance()
ComputerLauncher
getDelegate()
Descriptor<ComputerLauncher>
getDescriptor()
VirtualMachine
getVirtualMachine()
String
getVirtualMachineName()
boolean
isLaunchSupported()
void
launch(SlaveComputer slaveComputer, TaskListener taskListener)
-
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, checkJavaVersion, launch
-
-
-
-
Constructor Detail
-
VirtualMachineLauncher
@DataBoundConstructor public VirtualMachineLauncher(ComputerLauncher delegate, String hypervisorDescription, String virtualMachineName, int waitingTimeSecs, int timesToRetryOnFailure)
-
-
Method Detail
-
getDelegate
public ComputerLauncher getDelegate()
-
getVirtualMachine
public VirtualMachine getVirtualMachine()
-
getVirtualMachineName
public String getVirtualMachineName()
-
isLaunchSupported
public boolean isLaunchSupported()
- Overrides:
isLaunchSupported
in classComputerLauncher
-
findOurHypervisorInstance
public Hypervisor findOurHypervisorInstance() throws VirtException
- Throws:
VirtException
-
launch
public void launch(SlaveComputer slaveComputer, TaskListener taskListener) throws IOException, InterruptedException
- Overrides:
launch
in classComputerLauncher
- Throws:
IOException
InterruptedException
-
afterDisconnect
public void afterDisconnect(SlaveComputer slaveComputer, TaskListener taskListener)
- Overrides:
afterDisconnect
in classComputerLauncher
-
beforeDisconnect
public void beforeDisconnect(SlaveComputer slaveComputer, TaskListener taskListener)
- Overrides:
beforeDisconnect
in classComputerLauncher
-
getDescriptor
public Descriptor<ComputerLauncher> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<ComputerLauncher>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<ComputerLauncher>
-
-