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

    Fields
    Modifier and Type
    Field
    Description
    private com.profesorfalken.jsensors.model.components.Components
     
    static final de.iip_ecosphere.platform.support.metrics.SystemMetrics
     

    Fields inherited from interface de.iip_ecosphere.platform.support.metrics.SystemMetrics

    INVALID_CELSIUS_TEMPERATURE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Prevents external creation.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    int
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      getCaseTemperature in interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
    • getCpuTemperature

      public float getCpuTemperature()
      Specified by:
      getCpuTemperature in interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
    • getNumGpuCores

      public int getNumGpuCores()
      Specified by:
      getNumGpuCores in interface de.iip_ecosphere.platform.support.metrics.SystemMetrics
    • getNumCpuCores

      public int getNumCpuCores()
      Specified by:
      getNumCpuCores in interface de.iip_ecosphere.platform.support.metrics.SystemMetrics