public enum DurationMetric extends Enum<DurationMetric>
| Enum Constant and Description |
|---|
QUERY_EXECUTION_TIME
The metric that captures the duration of
query executions. |
SEQUENCER_EXECUTION_TIME
The metric that captures the duration of sequencer executions.
|
SESSION_LIFETIME
The metric that captures the duration of
sessions. |
| Modifier and Type | Method and Description |
|---|---|
static DurationMetric |
fromLiteral(String literal)
Get the
DurationMetric that has the supplied literal. |
String |
getDescription()
Return the description for this metric.
|
String |
getLabel()
The readable label for this metric.
|
String |
getLiteral()
The literal string form of the duration metric.
|
static DurationMetric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DurationMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DurationMetric QUERY_EXECUTION_TIME
query executions. Note that the payload of the
DurationActivity instances are the query strings.public static final DurationMetric SESSION_LIFETIME
sessions. Note that the payload of the DurationActivity
instances are the session usern IDs.public static final DurationMetric SEQUENCER_EXECUTION_TIME
DurationActivity
instances are strings containing the sequencer name and the input and output paths.public static DurationMetric[] values()
for (DurationMetric c : DurationMetric.values()) System.out.println(c);
public static DurationMetric 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 getLiteral()
public String getLabel()
public String getDescription()
public static DurationMetric fromLiteral(String literal)
DurationMetric that has the supplied literal.literal - the literal (can be of any case); may not be nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.