Class BitmotecSystemMetricsDescriptor

java.lang.Object
de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor<de.iip_ecosphere.platform.support.metrics.SystemMetrics>
de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor<de.iip_ecosphere.platform.support.metrics.SystemMetrics>
de.iip_ecosphere.platform.support.metrics.AbstractSystemMetricsPluginDescriptor
de.iip_ecosphere.platform.support.metrics.bitmotec.BitmotecSystemMetricsDescriptor
All Implemented Interfaces:
de.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor, de.iip_ecosphere.platform.support.plugins.PluginDescriptor<de.iip_ecosphere.platform.support.metrics.SystemMetrics>

public class BitmotecSystemMetricsDescriptor extends de.iip_ecosphere.platform.support.metrics.AbstractSystemMetricsPluginDescriptor
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
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor

    de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<T>
  • Field Summary

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

    PLUGIN_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.iip_ecosphere.platform.support.metrics.SystemMetrics
     
    boolean
     
    boolean
     
    private boolean
    Checks the given file considering it as os-release file.

    Methods inherited from class de.iip_ecosphere.platform.support.metrics.AbstractSystemMetricsPluginDescriptor

    initPluginSupplier

    Methods inherited from class de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor

    createPlugin

    Methods inherited from class de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor

    createPlugin, getFurtherIds, getId, getType, initId, initIds, initPluginClass

    Methods inherited from class java.lang.Object

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

    • BitmotecSystemMetricsDescriptor

      public BitmotecSystemMetricsDescriptor()
  • Method Details

    • createInstance

      public de.iip_ecosphere.platform.support.metrics.SystemMetrics createInstance()
    • isEnabled

      public boolean isEnabled()
    • isOsRelease

      private boolean isOsRelease(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()