@InterfaceAudience.Public @InterfaceStability.Stable public enum QueueState extends Enum<QueueState>
A queue is in one of:
Enum Constant and Description |
---|
DRAINING
Draining - Not accepting submissions of new applications,
and waiting for applications finish.
|
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 DRAINING
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 © 2018 Apache Software Foundation. All rights reserved.