Package overit.geocall.scheduler
Enum Class JobExecution.State
- All Implemented Interfaces:
Serializable,Comparable<JobExecution.State>,Constable
- Enclosing class:
JobExecution
Enum about possible
JobExecution states.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJobExecution.Stateabout a job execution that is canceled.JobExecution.Stateabout a job execution that is done.JobExecution.Stateabout a job execution that is failed.JobExecution.Stateabout a job execution that is idle.JobExecution.Stateabout a job execution that is running.JobExecution.Stateabout a job execution that is skipped. -
Method Summary
Modifier and TypeMethodDescriptionlonggetCode()Returns a long about thecode.static JobExecution.Stateof(long code) Returns aJobExecution.Statecorresponding to the providedcode; or throws aIllegalArgumentExceptionotherwise.static JobExecution.StateReturns the enum constant of this class with the specified name.static JobExecution.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
JobExecution.Stateabout a job execution that is running. -
DONE
JobExecution.Stateabout a job execution that is done. -
FAILED
JobExecution.Stateabout a job execution that is failed. -
IDLE
JobExecution.Stateabout a job execution that is idle. -
CANCELED
JobExecution.Stateabout a job execution that is canceled. -
SKIPPED
JobExecution.Stateabout a job execution that is skipped.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Returns aJobExecution.Statecorresponding to the providedcode; or throws aIllegalArgumentExceptionotherwise.- Parameters:
code- long about acodevalue.- Returns:
- a
JobExecution.Statecorresponding to the providedcode; or throws aIllegalArgumentExceptionotherwise. - Throws:
IllegalArgumentException- exception thrown in case there is noJobExecution.Statecorresponding to the provided value.
-
getCode
public long getCode()Returns a long about thecode.- Returns:
- a long about the
code.
-