public enum JobState extends Enum<JobState>
Enum Constant and Description |
---|
ABORTED
The job was aborted (i.e.
|
COMPLETED
The job execution has completed successfully.
|
PREMATURE_TERMINATION
The job stopped running on its own, but has not reached
100% completion.
|
RUNNING
The job is currently running.
|
STOPPED
A request to stop job execution has been received and the job
stopped.
|
STOPPING
A request to stop job execution has been received and the job
is currently stopping.
|
UNKNOWN
Job execution status is unknown.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOneOf(JobState... jobStates) |
static JobState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobState ABORTED
public static final JobState COMPLETED
public static final JobState PREMATURE_TERMINATION
public static final JobState RUNNING
public static final JobState UNKNOWN
public static final JobState STOPPING
public static final JobState STOPPED
public static JobState[] values()
for (JobState c : JobState.values()) System.out.println(c);
public static JobState 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 isOneOf(JobState... jobStates)
Copyright © 2007–2021 Norconex Inc.. All rights reserved.