|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BatchStatus> org.springframework.batch.core.BatchStatus
public enum BatchStatus
Enumeration representing the status of a an Execution.
Enum Constant Summary | |
---|---|
ABANDONED
|
|
COMPLETED
The order of the status values is significant because it can be used to aggregate a set of status values - the result should be the maximum value. |
|
FAILED
|
|
STARTED
|
|
STARTING
|
|
STOPPED
|
|
STOPPING
|
|
UNKNOWN
|
Method Summary | |
---|---|
boolean |
isGreaterThan(BatchStatus other)
|
boolean |
isLessThan(BatchStatus other)
|
boolean |
isLessThanOrEqualTo(BatchStatus other)
|
boolean |
isRunning()
Convenience method to decide if a status indicates work is in progress. |
boolean |
isUnsuccessful()
Convenience method to decide if a status indicates execution was unsuccessful. |
static BatchStatus |
match(String value)
Find a BatchStatus that matches the beginning of the given value. |
static BatchStatus |
max(BatchStatus status1,
BatchStatus status2)
|
BatchStatus |
upgradeTo(BatchStatus other)
Method used to move status values through their logical progression, and override less severe failures with more severe ones. |
static BatchStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BatchStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BatchStatus COMPLETED
upgradeTo(BatchStatus)
). Higher
values than STARTED signify more serious failure. INCOMPLETE is used for
steps that have finished processing, but were not successful, and where
they should be skipped on a restart (so FAILED is the wrong status).
public static final BatchStatus STARTING
public static final BatchStatus STARTED
public static final BatchStatus STOPPING
public static final BatchStatus STOPPED
public static final BatchStatus FAILED
public static final BatchStatus ABANDONED
public static final BatchStatus UNKNOWN
Method Detail |
---|
public static BatchStatus[] values()
for (BatchStatus c : BatchStatus.values()) System.out.println(c);
public static BatchStatus valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static BatchStatus max(BatchStatus status1, BatchStatus status2)
public boolean isRunning()
public boolean isUnsuccessful()
public BatchStatus upgradeTo(BatchStatus other)
other
- another status to compare to
public boolean isGreaterThan(BatchStatus other)
other
- a status value to compare
public boolean isLessThan(BatchStatus other)
other
- a status value to compare
public boolean isLessThanOrEqualTo(BatchStatus other)
other
- a status value to compare
public static BatchStatus match(String value)
value
- a string representing a status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |