Class ReconfigureCpu
java.lang.Object
hudson.model.AbstractDescribableImpl<ReconfigureStep>
org.jenkinsci.plugins.vsphere.builders.ReconfigureStep
org.jenkinsci.plugins.vsphere.builders.ReconfigureCpu
- All Implemented Interfaces:
ExtensionPoint,Describable<ReconfigureStep>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.vsphere.builders.ReconfigureStep
ReconfigureStep.DeviceAction, ReconfigureStep.ReconfigureStepDescriptor, ReconfigureStep.SpecSubmitter, ReconfigureStep.StepActionNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.vsphere.builders.ReconfigureStep
spec, vm, vsphere -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(EnvVars env, TaskListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) booleanreconfigureCPU(Run<?, ?> run, Launcher launcher, TaskListener listener) voidsetCpuLimitMHz(String cpuLimitMHz) Optional CPU MHz reservation; leave unset to preserve the previous default (no reservation).Methods inherited from class org.jenkinsci.plugins.vsphere.builders.ReconfigureStep
all, extractEnvironment, fallbackVariant, findDeviceByLabel, getVirtualMachineConfigSpec, getVM, getVsphere, perform, reconfigureVm, setVirtualMachineConfigSpec, setVM, setVsphereMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
ReconfigureCpu
@DataBoundConstructor public ReconfigureCpu(String cpuCores, String coresPerSocket) throws VSphereException - Throws:
VSphereException
-
-
Method Details
-
getCpuCores
-
getCoresPerSocket
-
getCpuLimitMHz
-
setCpuLimitMHz
Optional CPU MHz reservation; leave unset to preserve the previous default (no reservation). -
perform
- Specified by:
performin classReconfigureStep- Throws:
VSphereException
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin classReconfigureStep- Throws:
InterruptedExceptionIOException
-
reconfigureCPU
public boolean reconfigureCPU(Run<?, ?> run, Launcher launcher, TaskListener listener) throws VSphereException- Throws:
VSphereException
-