|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DurationMetric>
org.modeshape.jcr.api.monitor.DurationMetric
public enum DurationMetric
The metrics for which ModeShape captures statistics on durations.
Enum Constant Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Method Detail |
---|
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 name
NullPointerException
- 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 null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |