Package org.cdlib.mrt.zk
Enum AccessState
- java.lang.Object
-
- java.lang.Enum<AccessState>
-
- org.cdlib.mrt.zk.AccessState
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessState>
,IngestState
public enum AccessState extends Enum<AccessState> implements IngestState
Access Assembly State Transitions
- See Also:
- State Transition Design, State Definition Yaml
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Completed
All jobs COMPLETEDDeleted
Failed
At least one job FAILEDPending
Assembly is ready to be processedProcessing
Payload is analyzed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IngestState>
nextStates()
IngestState
stateChange(IngestState next)
static AccessState
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.cdlib.mrt.zk.IngestState
fail, isDeletable, name, stateChangeAllowed, success
-
-
-
-
Enum Constant Detail
-
Pending
public static final AccessState Pending
Assembly is ready to be processed
-
Processing
public static final AccessState Processing
Payload is analyzed. If the payload is a manifest, it will be downloaded. Jobs are created in the job queue.
-
Failed
public static final AccessState Failed
At least one job FAILED
-
Completed
public static final AccessState Completed
All jobs COMPLETED
-
Deleted
public static final AccessState Deleted
-
-
Method Detail
-
values
public static AccessState[] 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 (AccessState c : AccessState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessState valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
nextStates
public List<IngestState> nextStates()
- Specified by:
nextStates
in interfaceIngestState
-
stateChange
public IngestState stateChange(IngestState next)
- Specified by:
stateChange
in interfaceIngestState
-
-