Class BitmotecSystemMetricsDescriptor

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor

    public class BitmotecSystemMetricsDescriptor
    extends java.lang.Object
    implements de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
    The default JSL system metrics descriptor. Enables the metrics if /etc/os-release or /etc/os-release-bitmo looks like a bitmotec file.
    Author:
    Holger Eichelberger, SSE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.iip_ecosphere.platform.support.metrics.SystemMetrics createInstance()  
      boolean isEnabled()  
      boolean isFallback()  
      private boolean isOsRelease​(java.io.File file)
      Checks the given file considering it as os-release file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitmotecSystemMetricsDescriptor

        public BitmotecSystemMetricsDescriptor()
    • Method Detail

      • createInstance

        public de.iip_ecosphere.platform.support.metrics.SystemMetrics createInstance()
        Specified by:
        createInstance in interface de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
      • isOsRelease

        private boolean isOsRelease​(java.io.File file)
        Checks the given file considering it as os-release file.
        Parameters:
        file - the file
        Returns:
        true if bitmotec is detected, false else
      • isFallback

        public boolean isFallback()
        Specified by:
        isFallback in interface de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor