Package org.cdlib.mrt.zk
Enum BatchState
- All Implemented Interfaces:
Serializable
,Comparable<BatchState>
,IngestState
Batch State Transitions
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll jobs COMPLETEDAt least one job FAILEDCollection is HELD.Batch is ready to be processedPayload is analyzed.All jobs have COMPLETED or FAILED, a summary e-mail is sent to the depositor.Determine if any previously FAILED jobs are not complete. -
Method Summary
Modifier and TypeMethodDescriptionstateChange
(IngestState next) static BatchState
Returns the enum constant of this type with the specified name.static BatchState[]
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 Details
-
Pending
Batch is ready to be processed -
Held
Collection is HELD. The hold must be released before the batch can proceed. -
Processing
Payload is analyzed. If the payload is a manifest, it will be downloaded. Jobs are created in the job queue. -
Reporting
All jobs have COMPLETED or FAILED, a summary e-mail is sent to the depositor. -
Failed
At least one job FAILED -
UpdateReporting
Determine if any previously FAILED jobs are not complete. If so, notify the depositor by email. -
Completed
All jobs COMPLETED -
Deleted
-
-
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
-
nextStates
- Specified by:
nextStates
in interfaceIngestState
-
stateChange
- Specified by:
stateChange
in interfaceIngestState
-