public class Metrics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Metrics.MetricsScope
MetricsScope : A class that encapsulates an idea of a metered scope.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
endScope(java.lang.String name) |
static java.lang.Object |
get(java.lang.String name) |
static Metrics.MetricsScope |
getScope(java.lang.String name) |
static java.lang.Long |
incrementCounter(java.lang.String name) |
static java.lang.Long |
incrementCounter(java.lang.String name,
long increment) |
static void |
init() |
static void |
set(java.lang.String name,
java.lang.Object value) |
static Metrics.MetricsScope |
startScope(java.lang.String name) |
public static void init()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Long incrementCounter(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Long incrementCounter(java.lang.String name,
long increment)
throws java.io.IOException
java.io.IOExceptionpublic static void set(java.lang.String name,
java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object get(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic static Metrics.MetricsScope startScope(java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic static Metrics.MetricsScope getScope(java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic static void endScope(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionCopyright © 2012 The Apache Software Foundation