@InterfaceAudience.Public @InterfaceStability.Stable public enum QueueState extends Enum<QueueState>
State of a Queue.
A queue is in one of:
Enum Constant and Description |
---|
RUNNING
Running - normal operation.
|
STOPPED
Stopped - Not accepting submissions of new applications.
|
Modifier and Type | Method and Description |
---|---|
static QueueState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueueState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueueState STOPPED
public static final QueueState RUNNING
public static QueueState[] values()
for (QueueState c : QueueState.values()) System.out.println(c);
public static QueueState 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 nullCopyright © 2015 Apache Software Foundation. All Rights Reserved.