Package org.cdlib.mrt.zk
Enum JobState
- All Implemented Interfaces:
Serializable
,Comparable<JobState>
,IngestState
Job State Transitions
- See Also:
-
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. -
Method Summary
Modifier and TypeMethodDescriptionstateChange
(IngestState next) static JobState
Returns the enum constant of this type with the specified name.static JobState[]
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
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) -
Recording
Storage is complete; ready for Inventory. The Inventory service will operate on this step. -
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 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
-