Uses of Class
org.jenkinsci.plugins.vsphere.tools.HostSelectionOptions
Packages that use HostSelectionOptions
-
Uses of HostSelectionOptions in org.jenkinsci.plugins
Methods in org.jenkinsci.plugins that return HostSelectionOptionsModifier and TypeMethodDescriptionstatic HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory) Resolves the host selection refinements for one call site: the cloud's own defaults (or none, if there is nocloud), overridden by whatever the call site set explicitly.static HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory, Boolean requireAvailableMemory) As above, also for the "enough memory free right now" requirement.static HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory, Boolean requireAvailableMemory, HostWeights weightsOverride) As above, also with the host weights a call site set for itself: ifweightsOverrideis not null it replaces the cloud's weights as a whole, else the cloud's apply. -
Uses of HostSelectionOptions in org.jenkinsci.plugins.vsphere.tools
Fields in org.jenkinsci.plugins.vsphere.tools declared as HostSelectionOptionsModifier and TypeFieldDescriptionstatic final HostSelectionOptionsHostSelectionOptions.NONENo refinements: the original behaviour.Methods in org.jenkinsci.plugins.vsphere.tools that return HostSelectionOptionsModifier and TypeMethodDescriptionHostSelectionOptions.withVmSize(Integer vmCpus, Long vmMemoryMB) Same options, but telling the host size checks to compare against this vCPU count and memory size (null: unknown, use the source VM's) instead of the source VM's own - for VMs that are known to be resized right after being cloned.HostSelectionOptions.withWeights(HostWeights weights) Same options, ranking the candidate hosts with these weights.Methods in org.jenkinsci.plugins.vsphere.tools with parameters of type HostSelectionOptionsModifier and TypeMethodDescriptionvoidVSphere.cloneOrDeployVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean useCurrentSnapshot, String namedSnapshot, boolean powerOn, Map<String, String> extraConfigParameters, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, PrintStream jLogger) As the overload without them, plus two opt-in checks on top ofhostSelectionMode's candidate list, both comparing the VM's configuration with each host's total physical capacity (not what is currently free):voidVSphere.cloneOrDeployVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean useCurrentSnapshot, String namedSnapshot, boolean powerOn, Map<String, String> extraConfigParameters, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, VmSize vmSize, PrintStream jLogger) As the overload without them, plus the size to create the VM with.voidVSphere.cloneVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean powerOn, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, PrintStream jLogger) As the overload without them, plus the opt-in VM-size checks described atVSphere.cloneOrDeployVm(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.io.PrintStream)forhostSelectionOptions.voidVSphere.cloneVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean powerOn, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, VmSize vmSize, PrintStream jLogger) As the overload without them, plus a vCPU count and memory size (MB) to create the VM with in the same operation, instead of reconfiguring it afterwards; seeVSphere.cloneOrDeployVm(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.io.PrintStream).voidVSphere.deployVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean powerOn, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, PrintStream jLogger) As the overload without them, plus the opt-in VM-size checks described atVSphere.cloneOrDeployVm(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.io.PrintStream)forhostSelectionOptions.voidVSphere.deployVm(String cloneName, String sourceName, boolean linkedClone, String resourcePoolName, String cluster, String datastoreName, String folderName, boolean powerOn, String customizationSpec, String host, String hostSelectionMode, Set<String> hostSelectionCandidates, HostSelectionOptions hostSelectionOptions, VmSize vmSize, PrintStream jLogger) As the overload without them, plus a vCPU count and memory size (MB) to create the VM with in the same operation, instead of reconfiguring it afterwards; seeVSphere.cloneOrDeployVm(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.io.PrintStream).