Enum Constant and Description |
---|
HostBatteryLow
Host is running low on battery (power management event).
|
HostResume
Host is being resumed (power management event).
|
HostSuspend
Host is being suspended (power management event).
|
Snapshot
A snapshot of the VM is being taken.
|
Unspecified
Null value, means "no known reason".
|
Modifier and Type | Method and Description |
---|---|
static Reason |
fromValue(long v) |
static Reason |
fromValue(java.lang.String v) |
int |
value() |
static Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Reason Unspecified
public static final Reason HostSuspend
public static final Reason HostResume
public static final Reason HostBatteryLow
public static final Reason Snapshot
public static Reason[] values()
for (Reason c : Reason.values()) System.out.println(c);
public static Reason 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 int value()
public static Reason fromValue(long v)
public static Reason fromValue(java.lang.String v)