Enum AnalysisState
- java.lang.Object
-
- java.lang.Enum<AnalysisState>
-
- ca.corefacility.bioinformatics.irida.model.enums.AnalysisState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnalysisState>
public enum AnalysisState extends java.lang.Enum<AnalysisState>
Defines a set of states for anAnalysisSubmission
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETED
An analysis that has completed and been loaded into IRIDA.COMPLETING
An analysis that is complete but data needs to be transferred back into IRIDA.DOWNLOADING
Deprecated.This is no longer a valid state.ERROR
An analysis that was not successfully able to run.FINISHED_DOWNLOADING
Deprecated.This is no longer a valid state.FINISHED_RUNNING
An analysis that has finished running in the execution manager.NEW
Occurs when an analysis is first entered for submission.POST_PROCESSING
An analysis currently undergoing post processingPREPARED
Occurs when an analysis is finished preparing.PREPARING
Occurs when an analysis is starting to be submitted.RUNNING
An analysis that is running in the execution manager.SUBMITTING
Occurs when an analysis is first submitting.TRANSFERRED
An analysis that has been transferred to IRIDA, but has not had post processing performed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnalysisState
fromString(java.lang.String stateString)
Given a string defining a state, converts this to a AnalysisState.static java.util.List<AnalysisState>
getRunningStates()
Get theAnalysisState
s that denote anAnalysisSubmission
that has been picked up and is currently being processed.java.lang.String
toString()
static AnalysisState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnalysisState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final AnalysisState NEW
Occurs when an analysis is first entered for submission.
-
DOWNLOADING
@Deprecated(since="0.17.0") public static final AnalysisState DOWNLOADING
Deprecated.This is no longer a valid state. This must still exist in IRIDA in cases where this state has been recored in the audit tables.Occurs when an analysis is downloading remote files
-
FINISHED_DOWNLOADING
@Deprecated(since="0.17.0") public static final AnalysisState FINISHED_DOWNLOADING
Deprecated.This is no longer a valid state. This must still exist in IRIDA in cases where this state has been recored in the audit tables.Occurs when an analysis has completed downloading remote files
-
PREPARING
public static final AnalysisState PREPARING
Occurs when an analysis is starting to be submitted.
-
PREPARED
public static final AnalysisState PREPARED
Occurs when an analysis is finished preparing.
-
SUBMITTING
public static final AnalysisState SUBMITTING
Occurs when an analysis is first submitting.
-
RUNNING
public static final AnalysisState RUNNING
An analysis that is running in the execution manager.
-
FINISHED_RUNNING
public static final AnalysisState FINISHED_RUNNING
An analysis that has finished running in the execution manager.
-
COMPLETING
public static final AnalysisState COMPLETING
An analysis that is complete but data needs to be transferred back into IRIDA.
-
COMPLETED
public static final AnalysisState COMPLETED
An analysis that has completed and been loaded into IRIDA.
-
TRANSFERRED
public static final AnalysisState TRANSFERRED
An analysis that has been transferred to IRIDA, but has not had post processing performed.
-
POST_PROCESSING
public static final AnalysisState POST_PROCESSING
An analysis currently undergoing post processing
-
ERROR
public static final AnalysisState ERROR
An analysis that was not successfully able to run.
-
-
Method Detail
-
values
public static AnalysisState[] 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 (AnalysisState c : AnalysisState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnalysisState 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
-
fromString
public static AnalysisState fromString(java.lang.String stateString)
Given a string defining a state, converts this to a AnalysisState.- Parameters:
stateString
- The string defining the state.- Returns:
- A AnalysisState for the corresponding state.
-
getRunningStates
public static java.util.List<AnalysisState> getRunningStates()
Get theAnalysisState
s that denote anAnalysisSubmission
that has been picked up and is currently being processed.- Returns:
- a List of
AnalysisState
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AnalysisState>
-
-