public static enum Job.State extends Enum<Job.State>
Enum Constant and Description |
---|
ABORTED
A job which terminated due to being forcefully aborted.
|
ACCEPTED
A job which has been accepted by a server.
|
FAILED
A job whose execution has failed for some reason.
|
FINISHED
A job which is finished.
|
NEW
A new job.
|
STARTED
A job which is currently executing on a server.
|
SUBMITTED
A job which has been submitted to a server for execution, but has not yet been accepted by a
server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminalState()
Return whether the state is a terminal state.
|
static Job.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Job.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Job.State NEW
public static final Job.State SUBMITTED
public static final Job.State ACCEPTED
public static final Job.State STARTED
public static final Job.State FINISHED
public static final Job.State FAILED
public static final Job.State ABORTED
public static Job.State[] values()
for (Job.State c : Job.State.values()) System.out.println(c);
public static Job.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 boolean isTerminalState()
Copyright © 2016 levigo holding gmbh. All rights reserved.