|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics.MetricsUtil
org.apache.hadoop.metrics2
usage.
@Deprecated @InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class MetricsUtil
Utility class to simplify creation and reporting of hadoop metrics. For examples of usage, see NameNodeMetrics.
MetricsRecord
,
MetricsContext
,
ContextFactory
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
Deprecated. |
Method Summary | |
---|---|
static MetricsRecord |
createRecord(MetricsContext context,
String recordName)
Deprecated. Utility method to create and return new metrics record instance within the given context. |
static MetricsContext |
getContext(String contextName)
Deprecated. |
static MetricsContext |
getContext(String refName,
String contextName)
Deprecated. Utility method to return the named context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public static MetricsContext getContext(String contextName)
public static MetricsContext getContext(String refName, String contextName)
public static MetricsRecord createRecord(MetricsContext context, String recordName)
context
- the contextrecordName
- name of the record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |