public enum MainDefaultType extends java.lang.Enum<MainDefaultType>
| Enum Constant and Description |
|---|
END
Instrument end of monitoring at end of main by default.
|
NONE
Do nothing, rely on annotations only.
|
SHUTDOWN
Instrument end of monitoring by shutdown hook.
|
START
Instrument startup of monitoring at beginning of main by default.
|
START_END
|
START_END_SHUTDOWN
|
START_SHUTDOWN
|
START_STOP
Deprecated.
use
START_END instead |
| Modifier and Type | Field and Description |
|---|---|
private int |
flags
Stores the flags from
MainDefaultTypeConstants. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atShutdown()
Returns whether default instrumentation should happen as a shutdown hook.
|
boolean |
atStart()
Returns whether default instrumentation should happen at the beginning.
|
boolean |
atStop()
Returns whether default instrumentation should happen at the end.
|
static MainDefaultType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MainDefaultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MainDefaultType NONE
public static final MainDefaultType START
public static final MainDefaultType END
public static final MainDefaultType SHUTDOWN
public static final MainDefaultType START_END
public static final MainDefaultType START_STOP
START_END insteadpublic static final MainDefaultType START_SHUTDOWN
public static final MainDefaultType START_END_SHUTDOWN
private int flags
MainDefaultTypeConstants.public static MainDefaultType[] values()
for (MainDefaultType c : MainDefaultType.values()) System.out.println(c);
public static MainDefaultType 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 boolean atStart()
true if it should happen at the beginning,
false elsepublic boolean atStop()
true if it should happen at the end,
false elsepublic boolean atShutdown()
true if it should happen as a shutdown hook,
false else