Package org.jeasy.batch.core.job
Enum JobStatus
- java.lang.Object
-
- java.lang.Enum<JobStatus>
-
- org.jeasy.batch.core.job.JobStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JobStatus>
public enum JobStatus extends java.lang.Enum<JobStatus>
Enumeration of job status values.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
The job has been interrupted.COMPLETED
The job has completed normally without any exception.FAILED
The job has failed (due to read/write errors or errorThreshold exceeded).STARTED
The job has started.STARTING
The job is starting (opening record reader/writer).STOPPING
The job is stopping (closing record reader/writer)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JobStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JobStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final JobStatus STARTING
The job is starting (opening record reader/writer).
-
STARTED
public static final JobStatus STARTED
The job has started.
-
STOPPING
public static final JobStatus STOPPING
The job is stopping (closing record reader/writer)
-
FAILED
public static final JobStatus FAILED
The job has failed (due to read/write errors or errorThreshold exceeded).
-
COMPLETED
public static final JobStatus COMPLETED
The job has completed normally without any exception.
-
ABORTED
public static final JobStatus ABORTED
The job has been interrupted.
-
-
Method Detail
-
values
public static JobStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JobStatus c : JobStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-