Class BitmotecSystemMetricsDescriptor
- java.lang.Object
-
- de.iip_ecosphere.platform.support.metrics.bitmotec.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.SystemMetricsDescriptorThe default JSL system metrics descriptor. Enables the metrics if/etc/os-releaseor/etc/os-release-bitmolooks like a bitmotec file.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description BitmotecSystemMetricsDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.iip_ecosphere.platform.support.metrics.SystemMetricscreateInstance()booleanisEnabled()booleanisFallback()private booleanisOsRelease(java.io.File file)Checks the given file considering it asos-releasefile.
-
-
-
Method Detail
-
createInstance
public de.iip_ecosphere.platform.support.metrics.SystemMetrics createInstance()
- Specified by:
createInstancein interfacede.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacede.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
-
isOsRelease
private boolean isOsRelease(java.io.File file)
Checks the given file considering it asos-releasefile.- Parameters:
file- the file- Returns:
trueif bitmotec is detected,falseelse
-
isFallback
public boolean isFallback()
- Specified by:
isFallbackin interfacede.iip_ecosphere.platform.support.metrics.SystemMetricsDescriptor
-
-