public static class JobWorkerHealthReporter.JobWorkerHealthReport extends Object
Constructor and Description |
---|
JobWorkerHealthReport(oshi.hardware.HardwareAbstractionLayer hardware,
WorkerNetAddress workerNetAddress)
Creates a new instance of
JobWorkerHealthReporter.JobWorkerHealthReport . |
Modifier and Type | Method and Description |
---|---|
List<Double> |
getCpuLoadAverage()
Returns the system load average of the worker.
|
long |
getLastComputed()
Returns the worker health observed time.
|
int |
getLogicalProcessorCount()
Returns the system logical processor count.
|
boolean |
isHealthy()
Determines whether the system is healthy from all the metrics it has collected.
|
public JobWorkerHealthReport(oshi.hardware.HardwareAbstractionLayer hardware, WorkerNetAddress workerNetAddress)
JobWorkerHealthReporter.JobWorkerHealthReport
.hardware
- represents the system info of the workerworkerNetAddress
- the connection info for this workerpublic List<Double> getCpuLoadAverage()
public int getLogicalProcessorCount()
public long getLastComputed()
public boolean isHealthy()
Copyright © 2023. All Rights Reserved.