@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class MetricsUtil extends Object
MetricsRecord,
MetricsContext,
ContextFactory| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Modifier and Type | Method and Description |
|---|---|
static MetricsRecord |
createRecord(MetricsContext context,
String recordName)
Utility method to create and return new metrics record instance within the
given context.
|
static MetricsContext |
getContext(String contextName) |
static MetricsContext |
getContext(String refName,
String contextName)
Utility method to return the named context.
|
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 recordCopyright © 2013 Apache Software Foundation. All rights reserved.