public enum State extends Enum<State>
Enum Constant and Description |
---|
ACTIVE
accepting jobs, jobs can run
|
CLOSED
closed by user
|
DRAINING
jobs still run, not accepting new jobs
|
EXPIRED
closed by system
|
FAILED
closed unexpectedly by system or internally
|
FINAL
Closed | Expired | Failed
|
NEW
will become active eventually
|
PENDING
will become active eventually
|
RUNNING
Pending | Active | Draining
|
UNKNOWN
wut?
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal.
|
boolean |
isFinal() |
boolean |
isRunning() |
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State UNKNOWN
public static final State NEW
public static final State PENDING
public static final State ACTIVE
public static final State DRAINING
public static final State RUNNING
public static final State CLOSED
public static final State EXPIRED
public static final State FAILED
public static final State FINAL
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State 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 int getValue()
public boolean isRunning()
public boolean isFinal()
Copyright © 2016 Open Grid Forum. All rights reserved.