org.apache.hadoop.metrics.jvm
Class JvmMetrics
java.lang.Object
org.apache.hadoop.metrics.jvm.JvmMetrics
- All Implemented Interfaces:
- Updater
public class JvmMetrics
- extends java.lang.Object
- implements Updater
Singleton class which reports Java Virtual Machine metrics to the metrics API.
Any application can create an instance of this class in order to emit
Java VM metrics.
|
Method Summary |
void |
doUpdates(MetricsContext context)
This will be called periodically (with the period being configuration
dependent). |
static JvmMetrics |
init(java.lang.String processName,
java.lang.String sessionId)
|
static JvmMetrics |
init(java.lang.String processName,
java.lang.String sessionId,
java.lang.String recordName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
init
public static JvmMetrics init(java.lang.String processName,
java.lang.String sessionId)
init
public static JvmMetrics init(java.lang.String processName,
java.lang.String sessionId,
java.lang.String recordName)
doUpdates
public void doUpdates(MetricsContext context)
- This will be called periodically (with the period being configuration
dependent).
- Specified by:
doUpdates in interface Updater
Copyright © 2009 The Apache Software Foundation