Uses of Class
org.jenkinsci.plugins.vsphere.tools.VSphereHostSelection.HostCandidate
Packages that use VSphereHostSelection.HostCandidate
-
Uses of VSphereHostSelection.HostCandidate in org.jenkinsci.plugins.vsphere.tools
Methods in org.jenkinsci.plugins.vsphere.tools that return VSphereHostSelection.HostCandidateModifier and TypeMethodDescriptionVSphereHostSelection.ScoredHost.getHost()VSphereHostSelection.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.VSphereHostSelection.pickLeastLoaded(List<VSphereHostSelection.HostCandidate> candidates) Picks the candidate with the lowest load fraction, excluding any candidate whose stats are unavailable.Methods in org.jenkinsci.plugins.vsphere.tools that return types with arguments of type VSphereHostSelection.HostCandidateModifier and TypeMethodDescriptionVSphereHostSelection.filterByVmSize(List<VSphereHostSelection.HostCandidate> candidates, boolean requireCores, Integer vmCpus, boolean requireMemory, Integer vmMemoryMB) Optionally drops candidates that are physically too small for the VM about to be created: withrequireCores, hosts with fewer physical CPU cores thanvmCpus; withrequireMemory, hosts with less total physical RAM thanvmMemoryMB.VSphereHostSelection.filterCandidates(List<VSphereHostSelection.HostCandidate> candidates, Set<String> allowList) Filters candidates down to ones that are usable (connected, not in maintenance mode) and, if the allow-list is non-empty, whose name is in it.VSphereHostSelection.listOf(VSphereHostSelection.HostCandidate... candidates) Convenience: same as callingArrays.asList(T...)for tests.Methods in org.jenkinsci.plugins.vsphere.tools with parameters of type VSphereHostSelection.HostCandidateModifier and TypeMethodDescriptionstatic StringVSphereHostSelection.excludedBecause(VSphereHostSelection.HostCandidate candidate, Set<String> allowList) WhyVSphereHostSelection.filterCandidates(java.util.List<org.jenkinsci.plugins.vsphere.tools.VSphereHostSelection.HostCandidate>, java.util.Set<java.lang.String>)drops this host, or null if it keeps it.VSphereHostSelection.listOf(VSphereHostSelection.HostCandidate... candidates) Convenience: same as callingArrays.asList(T...)for tests.static StringVSphereHostSelection.sizeShortfall(VSphereHostSelection.HostCandidate candidate, boolean requireCores, Integer vmCpus, boolean requireMemory, boolean requireAvailableMemory, Integer vmMemoryMB) As above, and withrequireAvailableMemoryalso drops hosts that do not have at leastvmMemoryMBof memory free right now (so the new VM would not be swapped by the hypervisor), or whose memory usage is unknown.static StringVSphereHostSelection.sizeShortfall(VSphereHostSelection.HostCandidate candidate, boolean requireCores, Integer vmCpus, boolean requireMemory, Integer vmMemoryMB) WhyVSphereHostSelection.filterByVmSize(java.util.List<org.jenkinsci.plugins.vsphere.tools.VSphereHostSelection.HostCandidate>, boolean, java.lang.Integer, boolean, java.lang.Integer)drops this host, or null if it keeps it.Method parameters in org.jenkinsci.plugins.vsphere.tools with type arguments of type VSphereHostSelection.HostCandidateModifier and TypeMethodDescriptionVSphereHostSelection.filterByVmSize(List<VSphereHostSelection.HostCandidate> candidates, boolean requireCores, Integer vmCpus, boolean requireMemory, Integer vmMemoryMB) Optionally drops candidates that are physically too small for the VM about to be created: withrequireCores, hosts with fewer physical CPU cores thanvmCpus; withrequireMemory, hosts with less total physical RAM thanvmMemoryMB.VSphereHostSelection.filterCandidates(List<VSphereHostSelection.HostCandidate> candidates, Set<String> allowList) Filters candidates down to ones that are usable (connected, not in maintenance mode) and, if the allow-list is non-empty, whose name is in it.VSphereHostSelection.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.VSphereHostSelection.pickLeastLoaded(List<VSphereHostSelection.HostCandidate> candidates) Picks the candidate with the lowest load fraction, excluding any candidate whose stats are unavailable.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).