org.apache.hadoop.metrics2.source
Class JvmMetricsSource
java.lang.Object
org.apache.hadoop.metrics2.source.JvmMetricsSource
- All Implemented Interfaces:
- MetricsSource
public class JvmMetricsSource
- extends Object
- implements MetricsSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static JvmMetricsSource create(String processName,
String sessionId,
MetricsSystem ms)
create
public static JvmMetricsSource create(String processName,
String sessionId)
getMetrics
public void getMetrics(MetricsBuilder builder,
boolean all)
- Description copied from interface:
MetricsSource
- Get metrics from the source
- Specified by:
getMetrics
in interface MetricsSource
- Parameters:
builder
- to contain the resulting metrics snapshotall
- if true, return all metrics even if unchanged.
Copyright © 2009 The Apache Software Foundation