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.static HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory, Boolean requireAvailableMemory, HostWeights weightsOverride, Long waitSecondsOverride) As above, also with how long the call site is willing to wait for a host within the cloud's free resource limits: ifwaitSecondsOverrideis not null it replaces the cloud's wait time.static HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory, Boolean requireAvailableMemory, HostWeights weightsOverride, Long waitSecondsOverride, HostLimits limitsOverride) As above, also with the free resource limits a call site set for itself: iflimitsOverrideis not null it replaces the cloud's limits as a whole, else the cloud's apply.static HostSelectionOptionsvSphereCloud.hostSelectionOptions(vSphereCloud cloud, Boolean requireCores, Boolean requireMemory, Boolean requireAvailableMemory, HostWeights weightsOverride, Long waitSecondsOverride, HostLimits limitsOverride, Boolean folderFollowsHostOverride) As above, also with whether the call site wants the clone's default folder to follow the host chosen for it: iffolderFollowsHostOverrideis not null it replaces the cloud's setting. -
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.withFolderFollowsHost(boolean folderFollowsHost) Same options, but if no folder is given for the clone, put it in the folder of its source with the source's host name replaced by the name of the host chosen for the clone (seeHostFolderPath), if there is such a folder.HostSelectionOptions.withLimits(HostLimits limits) Same options, keeping hosts with less free resources than these limits off the candidate list.HostSelectionOptions.withScoreDeviation(double scoreDeviation) Same options, choosing at random among the hosts scoring within this fraction (0..1) of the best one; a negative number always takes the single top host.HostSelectionOptions.withScoreDeviationOverride(Double scoreDeviation) AswithScoreDeviation(double), but a null (not set at the call site) keeps the current value.HostSelectionOptions.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.withWaitListener(HostSelectionOptions.Listener waitListener, boolean ignoreErrors) Same options, telling this listener whenever no host is available at the moment, right after that is logged.HostSelectionOptions.withWaitSeconds(long waitSeconds) Same options, but if the limits (or nothing else) leave no host, wait up to this many seconds for one to free up: 0 does not wait, a negative number (VSphereHostSelection.WAIT_FOREVER) waits for as long as it takes.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).