use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.
the class RDBMetrics method unRegister.
public static synchronized void unRegister() {
instance = null;
MetricsSystem ms = DefaultMetricsSystem.instance();
ms.unregisterSource(SOURCE_NAME);
}
use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.
the class XceiverClientMetrics method unRegister.
public void unRegister() {
MetricsSystem ms = DefaultMetricsSystem.instance();
ms.unregisterSource(SOURCE_NAME);
}
use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.
the class OzoneManagerDoubleBufferMetrics method unRegister.
public void unRegister() {
MetricsSystem ms = DefaultMetricsSystem.instance();
ms.unregisterSource(SOURCE_NAME);
}
use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.
the class OzoneManagerDoubleBufferMetrics method create.
public static synchronized OzoneManagerDoubleBufferMetrics create() {
if (instance != null) {
return instance;
} else {
MetricsSystem ms = DefaultMetricsSystem.instance();
OzoneManagerDoubleBufferMetrics omDoubleBufferMetrics = ms.register(SOURCE_NAME, "OzoneManager DoubleBuffer Metrics", new OzoneManagerDoubleBufferMetrics());
instance = omDoubleBufferMetrics;
return omDoubleBufferMetrics;
}
}
use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.
the class ContainerCacheMetrics method create.
public static ContainerCacheMetrics create() {
MetricsSystem ms = DefaultMetricsSystem.instance();
String name = "ContainerCacheMetrics";
return ms.register(name, "null", new ContainerCacheMetrics(name, ms));
}
Aggregations