Class DefaultSystemMetrics
java.lang.Object
de.iip_ecosphere.platform.support.dfltSysMetrics.DefaultSystemMetrics
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.metrics.SystemMetrics
public class DefaultSystemMetrics
extends Object
implements de.iip_ecosphere.platform.support.metrics.SystemMetrics
Default system metrics with a basic non-JDK provided metrics implementation.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.profesorfalken.jsensors.model.components.Componentsstatic final de.iip_ecosphere.platform.support.metrics.SystemMetricsFields inherited from interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
INVALID_CELSIUS_TEMPERATURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
close, getNumTpuCores, getOsArch, getOsName
-
Field Details
-
INSTANCE
public static final de.iip_ecosphere.platform.support.metrics.SystemMetrics INSTANCE -
components
private com.profesorfalken.jsensors.model.components.Components components
-
-
Constructor Details
-
DefaultSystemMetrics
protected DefaultSystemMetrics()Prevents external creation.
-
-
Method Details
-
getCaseTemperature
public float getCaseTemperature()- Specified by:
getCaseTemperaturein interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getCpuTemperature
public float getCpuTemperature()- Specified by:
getCpuTemperaturein interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getNumGpuCores
public int getNumGpuCores()- Specified by:
getNumGpuCoresin interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-
getNumCpuCores
public int getNumCpuCores()- Specified by:
getNumCpuCoresin interfacede.iip_ecosphere.platform.support.metrics.SystemMetrics
-