Example usage for org.apache.hadoop.metrics2.source JvmMetrics initSingleton

List of usage examples for org.apache.hadoop.metrics2.source JvmMetrics initSingleton

Introduction

In this page you can find the example usage for org.apache.hadoop.metrics2.source JvmMetrics initSingleton.

Prototype

public static JvmMetrics initSingleton(String processName, String sessionId) 

Source Link

Usage

From source file:de.huberlin.wbi.hiway.common.WFAppMetrics.java

License:Apache License

public static WFAppMetrics create(MetricsSystem ms) {
    JvmMetrics.initSingleton("WFAppMaster", null);
    return ms.register(new WFAppMetrics());
}

From source file:org.apache.phoenix.monitoring.GlobalMetricRegistriesAdapter.java

License:Apache License

private GlobalMetricRegistriesAdapter() {
    DefaultMetricsSystem.initialize("Phoenix");
    JvmMetrics.initSingleton("Phoenix", "");
}