Package uk.ac.starlink.vo
Enum Class UwsStage
- All Implemented Interfaces:
Serializable
,Comparable<UwsStage>
,Constable
Enum for categorising the stage of UWS processing.
This effectively subdivides the various phases defined by UWS.
- Since:
- 17 Feb 2011
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJob has finished successfully or otherwise; will not progress further.Not a defined phase string.Job is progressing; should reach FINISHED stage eventually.UNKNOWN phase; may change in future.Job will not complete of its own accord; need to post RUN phase. -
Method Summary
Modifier and TypeMethodDescriptionstatic UwsStage
Returns the stage corresponding to a given UWS phase.Returns the phases which correspond to this stage.static UwsStage
Returns the enum constant of this class with the specified name.static UwsStage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSTARTED
Job will not complete of its own accord; need to post RUN phase. -
RUNNING
Job is progressing; should reach FINISHED stage eventually. -
FINISHED
Job has finished successfully or otherwise; will not progress further. -
UNKNOWN
UNKNOWN phase; may change in future. -
ILLEGAL
Not a defined phase string.
-
-
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
-
getPhaseList
Returns the phases which correspond to this stage.- Returns:
- unmodifiable collection of defined phase strings
-
forPhase
Returns the stage corresponding to a given UWS phase. If the given phase is not one defined by UWS, ILLEGAL is returned.- Parameters:
phase
- UWS phase string- Returns:
- corresponding stage
-