public static enum Server.Status extends Enum<Server.Status>
Enum Constant and Description |
---|
BLOCKED |
CRASHED |
NOSTATE |
PAUSED |
RUNNING |
SHUTDOWN |
SHUTOFF |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Server.Status |
fromValue(String v) |
String |
value() |
static Server.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Server.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Server.Status NOSTATE
public static final Server.Status RUNNING
public static final Server.Status BLOCKED
public static final Server.Status PAUSED
public static final Server.Status SHUTDOWN
public static final Server.Status SHUTOFF
public static final Server.Status CRASHED
public static final Server.Status UNRECOGNIZED
public static Server.Status[] values()
for (Server.Status c : Server.Status.values()) System.out.println(c);
public static Server.Status 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 value()
public static Server.Status fromValue(String v)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.