Class VSphereHostSelection.HostCandidate
java.lang.Object
org.jenkinsci.plugins.vsphere.tools.VSphereHostSelection.HostCandidate
- Enclosing class:
VSphereHostSelection
Describes one candidate host's name, availability and current load,
as needed to decide whether/how favourably it can be used for a new
clone.
-
Constructor Summary
ConstructorsConstructorDescriptionHostCandidate(String name, boolean connected, boolean inMaintenanceMode, Integer cpuUsageMhz, int cpuCapacityMhz, Integer memUsageMB, long memCapacityMB) -
Method Summary
-
Constructor Details
-
HostCandidate
-
-
Method Details
-
getName
-
isConnected
public boolean isConnected() -
isInMaintenanceMode
public boolean isInMaintenanceMode() -
getCpuUsageMhz
-
getCpuCapacityMhz
public int getCpuCapacityMhz() -
getMemUsageMB
-
getMemCapacityMB
public long getMemCapacityMB() -
loadFraction
Fraction of capacity currently in use, taking the higher (more constrained) of CPU and memory. Returns null if usage stats are missing (stale/unavailable), so the host can be excluded rather than mis-ranked. -
isUsable
public boolean isUsable()True if the host is currently usable at all (connected and not in maintenance mode), regardless of load.
-