Class SystemMetrics
- java.lang.Object
-
- org.apache.iotdb.metrics.metricsets.system.SystemMetrics
-
- All Implemented Interfaces:
IMetricSet
public class SystemMetrics extends java.lang.Object implements IMetricSet
-
-
Constructor Summary
Constructors Constructor Description SystemMetrics(java.util.ArrayList<java.lang.String> diskDirs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindTo(AbstractMetricService metricService)bind metrics to metricManager and init environment.longgetSystemDiskFreeSpace()longgetSystemDiskTotalSpace()voidunbindFrom(AbstractMetricService metricService)remove metrics from metricManager and clear environment.
-
-
-
Method Detail
-
bindTo
public void bindTo(AbstractMetricService metricService)
Description copied from interface:IMetricSetbind metrics to metricManager and init environment.- Specified by:
bindToin interfaceIMetricSet
-
unbindFrom
public void unbindFrom(AbstractMetricService metricService)
Description copied from interface:IMetricSetremove metrics from metricManager and clear environment.- Specified by:
unbindFromin interfaceIMetricSet
-
getSystemDiskTotalSpace
public long getSystemDiskTotalSpace()
-
getSystemDiskFreeSpace
public long getSystemDiskFreeSpace()
-
-