Package org.cdlib.mrt.zk
Enum Class JobState
- All Implemented Interfaces:
Serializable,Comparable<JobState>,Constable,IngestState
Job State Transitions
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStorage and inventory are complete, cleanup job folderOne or more downloads is in progress.Perform HEAD requests for all content to estimate the size of the ingest.The queue will track the last successful step so that the job can be resumed at the appropriate step.Since Job was queued, the collection has been put into a HELD state.Invoke callback if needed Notify batch handler that the job is completeJob is waiting to be acquired by the queueAll downloads complete; perform Merritt Ingest (validate checksum, mint, create system files, notify storage)Once dynamic provisioning is implemented (ie zfs provisioning), wait for dedicated file system to be provisioned.Storage is complete; ready for Inventory.Processing is complete; ready for Storage. -
Method Summary
Modifier and TypeMethodDescriptionstateChange(IngestState next) static JobStateReturns the enum constant of this class with the specified name.static JobState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.cdlib.mrt.zk.IngestState
fail, isDeletable, name, stateChangeAllowed, success
-
Enum Constant Details
-
Pending
Job is waiting to be acquired by the queue -
Held
Since Job was queued, the collection has been put into a HELD state. The job will require an administrateive action to release it after the hold is released. -
Estimating
Perform HEAD requests for all content to estimate the size of the ingest. If HEAD requests are not supported, no value is updated and the job should proceed with limited information. This could potentially affect priority for the job -
Provisioning
Once dynamic provisioning is implemented (ie zfs provisioning), wait for dedicated file system to be provisioned. If not dedicated file system is specified, use default working storage. if working storage is more than 80% full, then wait otherwise, use default working storage -
Downloading
One or more downloads is in progress. This can be a multi-threaded step. Threads are not managed in the queue. -
Processing
All downloads complete; perform Merritt Ingest (validate checksum, mint, create system files, notify storage) -
Storing
Processing is complete; ready for Storage. The Storage service will operate on this state -
Recording
Storage is complete; ready for Inventory. The Inventory service will operate on this state. -
Notify
Invoke callback if needed Notify batch handler that the job is complete -
Failed
The queue will track the last successful step so that the job can be resumed at the appropriate step. -
Completed
Storage and inventory are complete, cleanup job folder -
Deleted
-
-
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
-
nextStates
- Specified by:
nextStatesin interfaceIngestState
-
stateChange
- Specified by:
stateChangein interfaceIngestState
-