Uses of Class
org.jenkinsci.plugins.vsphere.tools.HostWeights
Packages that use HostWeights
-
Uses of HostWeights in org.jenkinsci.plugins
Methods in org.jenkinsci.plugins that return HostWeightsModifier and TypeMethodDescriptionvSphereCloud.hostWeights()The four weights as one value;DEFAULTif none is set.Methods in org.jenkinsci.plugins with parameters of type HostWeightsModifier and TypeMethodDescriptionstatic 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 HostWeights in org.jenkinsci.plugins.vsphere.tools
Fields in org.jenkinsci.plugins.vsphere.tools declared as HostWeightsModifier and TypeFieldDescriptionstatic final HostWeightsHostWeights.DEFAULTAll zero: the original ranking.Methods in org.jenkinsci.plugins.vsphere.tools that return HostWeightsModifier and TypeMethodDescriptionHostSelectionOptions.getWeights()What "most available host" means;DEFAULTfor the original ranking.static HostWeightsHostWeights.parseOverride(String freeCpuMhz, String freeCpuPercent, String freeMemoryMB, String freeMemoryPercent) Builds the weights a single call (build step or template) sets for itself from the text of its four settings, already variable-expanded.Methods in org.jenkinsci.plugins.vsphere.tools with parameters of type HostWeightsModifier and TypeMethodDescriptionVSphereHostSelection.pickBest(List<VSphereHostSelection.HostCandidate> candidates, HostWeights weights) The most available candidate according toVSphereHostSelection.rank(java.util.List<org.jenkinsci.plugins.vsphere.tools.VSphereHostSelection.HostCandidate>, org.jenkinsci.plugins.vsphere.tools.HostWeights), or null if none has statistics.static List<VSphereHostSelection.ScoredHost> VSphereHostSelection.rank(List<VSphereHostSelection.HostCandidate> candidates, HostWeights weights) Ranks the candidates that have usage statistics, most available first (equally scored ones keep their incoming order).HostSelectionOptions.withWeights(HostWeights weights) Same options, ranking the candidate hosts with these weights.