Enum MediaJobState
- All Implemented Interfaces:
Serializable,Comparable<MediaJobState>,java.lang.constant.Constable
The previous state of the Job.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe job was canceled.The job is in the process of being canceled.The job has encountered an error.The job is finished.The job is processing.The job is in a queued state, waiting for resources to become available.The job is being scheduled to run on an available resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaJobStatefromString(String value) Parses a serialized value to a MediaJobState instance.toString()static MediaJobStateReturns the enum constant of this type with the specified name.static MediaJobState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CANCELED
The job was canceled. This is a final state for the job. -
CANCELING
The job is in the process of being canceled. This is a transient state for the job. -
ERROR
The job has encountered an error. This is a final state for the job. -
FINISHED
The job is finished. This is a final state for the job. -
PROCESSING
The job is processing. This is a transient state for the job. -
QUEUED
The job is in a queued state, waiting for resources to become available. This is a transient state. -
SCHEDULED
The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses a serialized value to a MediaJobState instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed MediaJobState object, or null if unable to parse.
-
toString
- Overrides:
toStringin classEnum<MediaJobState>
-