use of org.apache.hadoop.metrics2.source.JvmMetrics in project hive by apache.
the class LlapTaskSchedulerMetrics method create.
public static LlapTaskSchedulerMetrics create(String displayName, String sessionId) {
MetricsSystem ms = LlapMetricsSystem.instance();
JvmMetrics jm = JvmMetrics.create(MetricsUtils.METRICS_PROCESS_NAME, sessionId, ms);
return ms.register(displayName, "Llap Task Scheduler Metrics", new LlapTaskSchedulerMetrics(displayName, jm, sessionId));
}
Aggregations