public enum MetricsLevel extends Enum<MetricsLevel>
MetricsLevel
objects are ordered and are specified by ordered integers. Enabling metrics at a given
level also enables the metrics at all higher levels.
Metrics levels in descending order are:
Enum Constant and Description |
---|
DETAILED
DETAILED metrics level can be used to emit all metrics.
|
NONE
NONE metrics level can be used to turn off metrics.
|
SUMMARY
SUMMARY metrics level can be used to emit only the most significant metrics.
|
Modifier and Type | Method and Description |
---|---|
static MetricsLevel |
fromName(String name)
Returns metrics level associated with the given name.
|
String |
getName()
Returns the name for this metrics level.
|
int |
getValue()
Returns the value for this metrics level.
|
static MetricsLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricsLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricsLevel NONE
public static final MetricsLevel SUMMARY
public static final MetricsLevel DETAILED
public static MetricsLevel[] values()
for (MetricsLevel c : MetricsLevel.values()) System.out.println(c);
public static MetricsLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public int getValue()
public static MetricsLevel fromName(String name)
name
- Name of the metrics level.Copyright © 2016. All rights reserved.