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