Package com.tonic.analysis.query.ast
Enum RunSpec.TraceMode
- java.lang.Object
-
- java.lang.Enum<RunSpec.TraceMode>
-
- com.tonic.analysis.query.ast.RunSpec.TraceMode
-
- All Implemented Interfaces:
Serializable,Comparable<RunSpec.TraceMode>
- Enclosing class:
- RunSpec
public static enum RunSpec.TraceMode extends Enum<RunSpec.TraceMode>
How much execution trace to retain: none, a bounded ring, or the full trace.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLKeep every event for the whole run; the most expensive mode in memory and only practical for short executions.NONERecord nothing, running with no tracing overhead at all.RINGKeep only the most recent events in a fixed-size buffer, so a long run still leaves the tail leading up to a failure; the default.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RunSpec.TraceModevalueOf(String name)Returns the enum constant of this type with the specified name.static RunSpec.TraceMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final RunSpec.TraceMode NONE
Record nothing, running with no tracing overhead at all.
-
RING
public static final RunSpec.TraceMode RING
Keep only the most recent events in a fixed-size buffer, so a long run still leaves the tail leading up to a failure; the default.
-
FULL
public static final RunSpec.TraceMode FULL
Keep every event for the whole run; the most expensive mode in memory and only practical for short executions.
-
-
Method Detail
-
values
public static RunSpec.TraceMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RunSpec.TraceMode c : RunSpec.TraceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RunSpec.TraceMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-