@InterfaceAudience.Private public static enum Server.Status extends Enum<Server.Status>
Enum Constant and Description |
---|
ADMIN |
BOOTING |
HALTED |
NORMAL |
SHUTDOWN |
SHUTTING_DOWN |
UNDEF |
Modifier and Type | Method and Description |
---|---|
boolean |
isOperational()
Returns if this server status is operational.
|
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 UNDEF
public static final Server.Status BOOTING
public static final Server.Status HALTED
public static final Server.Status ADMIN
public static final Server.Status NORMAL
public static final Server.Status SHUTTING_DOWN
public static final Server.Status SHUTDOWN
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 boolean isOperational()
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.