Package org.jenkinsci.plugins
Class vSphereCloudLauncher
java.lang.Object
hudson.slaves.ComputerLauncher
hudson.slaves.DelegatingComputerLauncher
org.jenkinsci.plugins.vSphereCloudLauncher
- All Implemented Interfaces:
ExtensionPoint,Describable<ComputerLauncher>
- Author:
- Admin
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.slaves.DelegatingComputerLauncher
DelegatingComputerLauncher.DescriptorImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.DelegatingComputerLauncher
launcherFields inherited from class hudson.slaves.ComputerLauncher
LIST -
Constructor Summary
ConstructorsConstructorDescriptionvSphereCloudLauncher(ComputerLauncher launcher, String vsDescription, String vmName, Boolean overrideLaunchSupported, Boolean waitForVMTools, String snapName, String launchDelay, String idleOption, String LimitedTestRunCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterDisconnect(SlaveComputer slaveComputer, TaskListener taskListener) Find thevSphereCloudfor thisvSphereCloudLauncher, or dies trying.Deprecated.booleanvoidlaunch(SlaveComputer slaveComputer, TaskListener taskListener) booleanThe agent connects again by itself after it is disconnected and its virtual machine is reverted.Methods inherited from class hudson.slaves.DelegatingComputerLauncher
beforeDisconnect, getLauncherMethods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, checkJavaVersion, launch
-
Constructor Details
-
vSphereCloudLauncher
-
-
Method Details
-
findOurVsInstance
Find thevSphereCloudfor thisvSphereCloudLauncher, or dies trying.- Returns:
- The
vSphereCloud. It will not return null. - Throws:
RuntimeException- if it cannot find thevSphereCloud- e.g. if it's been deleted or the description has changed.
-
launch
public void launch(SlaveComputer slaveComputer, TaskListener taskListener) throws IOException, InterruptedException - Overrides:
launchin classDelegatingComputerLauncher- Throws:
IOExceptionInterruptedException
-
reconnectsAfterDisconnect
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean reconnectsAfterDisconnect()The agent connects again by itself after it is disconnected and its virtual machine is reverted. -
afterDisconnect
- Overrides:
afterDisconnectin classDelegatingComputerLauncher
-
getDelegate
Deprecated.- Returns:
- actual launcher
-
getVmName
-
getVsDescription
-
getIdleAction
-
getOverrideLaunchSupported
-
getWaitForVMTools
-
getLimitedTestRunCount
-
isLaunchSupported
public boolean isLaunchSupported()- Overrides:
isLaunchSupportedin classComputerLauncher
-
getDescriptor
-
DelegatingComputerLauncher.getLauncher()