public class Metrics extends 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(String name) |
static Object |
get(String name) |
static Metrics.MetricsScope |
getScope(String name) |
static Long |
incrementCounter(String name) |
static Long |
incrementCounter(String name,
long increment) |
static void |
init() |
static void |
set(String name,
Object value) |
static Metrics.MetricsScope |
startScope(String name) |
public static Long incrementCounter(String name) throws IOException
IOException
public static Long incrementCounter(String name, long increment) throws IOException
IOException
public static void set(String name, Object value) throws IOException
IOException
public static Object get(String name) throws IOException
IOException
public static Metrics.MetricsScope startScope(String name) throws IOException
IOException
public static Metrics.MetricsScope getScope(String name) throws IOException
IOException
public static void endScope(String name) throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.