public class VirtualMachineLauncher extends DelegatingComputerLauncher
| Modifier and Type | Class and Description |
|---|---|
static class |
VirtualMachineLauncher.RevertPolicy |
DelegatingComputerLauncher.DescriptorImplExtensionPoint.LegacyInstancesAreScopedToHudsonlauncherLIST| Constructor and Description |
|---|
VirtualMachineLauncher(ComputerLauncher launcher,
String datacenterDescription,
String datacenterNode,
Integer virtualMachineId,
String snapshotName,
Boolean startVM,
int waitingTimeSecs,
VirtualMachineLauncher.RevertPolicy revertPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDisconnect(SlaveComputer slaveComputer,
TaskListener taskListener) |
Datacenter |
findDatacenterInstance() |
ComputerLauncher |
getDelegate()
Deprecated.
|
Descriptor<ComputerLauncher> |
getDescriptor() |
boolean |
isLaunchSupported() |
void |
launch(SlaveComputer slaveComputer,
TaskListener taskListener) |
void |
revertSnapshot(SlaveComputer slaveComputer,
TaskListener taskListener) |
void |
shutdown(SlaveComputer slaveComputer,
TaskListener taskListener) |
void |
startSlaveIfNeeded(TaskListener taskListener) |
afterDisconnect, getLauncherafterDisconnect, beforeDisconnect, checkJavaVersion, launch@DataBoundConstructor public VirtualMachineLauncher(ComputerLauncher launcher, String datacenterDescription, String datacenterNode, Integer virtualMachineId, String snapshotName, Boolean startVM, int waitingTimeSecs, VirtualMachineLauncher.RevertPolicy revertPolicy)
@Deprecated public ComputerLauncher getDelegate()
DelegatingComputerLauncher.getLauncher()public Datacenter findDatacenterInstance() throws RuntimeException
RuntimeExceptionpublic boolean isLaunchSupported()
isLaunchSupported in class ComputerLauncherpublic void startSlaveIfNeeded(TaskListener taskListener) throws InterruptedException
InterruptedExceptionpublic void revertSnapshot(SlaveComputer slaveComputer, TaskListener taskListener) throws InterruptedException
InterruptedExceptionpublic void launch(SlaveComputer slaveComputer, TaskListener taskListener) throws IOException, InterruptedException
launch in class DelegatingComputerLauncherIOExceptionInterruptedExceptionpublic void shutdown(SlaveComputer slaveComputer, TaskListener taskListener)
public void beforeDisconnect(SlaveComputer slaveComputer, TaskListener taskListener)
beforeDisconnect in class DelegatingComputerLauncherpublic Descriptor<ComputerLauncher> getDescriptor()
getDescriptor in interface Describable<ComputerLauncher>getDescriptor in class AbstractDescribableImpl<ComputerLauncher>Copyright © 2016–2022 Dynamo-Media. All rights reserved.