public enum KafkaMetricGenerator extends java.lang.Enum<KafkaMetricGenerator>
Enum Constant and Description |
---|
COUNT_MONOTONIC |
QUEUE_SIZE |
REQ_MEAN |
VALUE_SIMPLE |
Modifier and Type | Method and Description |
---|---|
abstract JmxMetric |
createMetric(java.lang.String attributeName) |
static KafkaMetricGenerator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KafkaMetricGenerator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaMetricGenerator COUNT_MONOTONIC
public static final KafkaMetricGenerator VALUE_SIMPLE
public static final KafkaMetricGenerator QUEUE_SIZE
public static final KafkaMetricGenerator REQ_MEAN
public static KafkaMetricGenerator[] values()
for (KafkaMetricGenerator c : KafkaMetricGenerator.values()) System.out.println(c);
public static KafkaMetricGenerator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract JmxMetric createMetric(java.lang.String attributeName)