public enum ContainerState extends Enum<ContainerState>
| Enum Constant and Description |
|---|
HEALTHY |
HEARTBEAT_LOST |
INIT |
UNHEALTHY |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canIssueCommands()
Indicates whether or not it is a valid state to produce a command.
|
static ContainerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContainerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContainerState INIT
public static final ContainerState HEALTHY
public static final ContainerState UNHEALTHY
public static final ContainerState HEARTBEAT_LOST
public static ContainerState[] values()
for (ContainerState c : ContainerState.values()) System.out.println(c);
public static ContainerState 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 canIssueCommands()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.