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 -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.metrics.SystemMetricsbooleanbooleanprivate booleanisOsRelease(File file) Checks the given file considering it asos-releasefile.Methods inherited from class de.iip_ecosphere.platform.support.metrics.AbstractSystemMetricsPluginDescriptor
initPluginSupplierMethods inherited from class de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor
createPluginMethods inherited from class de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor
createPlugin, getFurtherIds, getId, getType, initId, initIds, initPluginClass
-
Constructor Details
-
BitmotecSystemMetricsDescriptor
public BitmotecSystemMetricsDescriptor()
-
-
Method Details
-
createInstance
public de.iip_ecosphere.platform.support.metrics.SystemMetrics createInstance() -
isEnabled
public boolean isEnabled() -
isOsRelease
Checks the given file considering it asos-releasefile.- Parameters:
file- the file- Returns:
trueif bitmotec is detected,falseelse
-
isFallback
public boolean isFallback()
-