Class VerifyManifest
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.checkm.VerifyManifest
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
@Suspendable(invoked=INTERACTIVE) public class VerifyManifest extends org.dspace.curate.AbstractCurationTaskVerifyManifest task will simply test for the presence of a manifest of the object in the remote store. It succeeds if found, otherwise fails.Manifests conform to the CDL Checkm v0.7 manifest format spec. http://www.cdlib.org/uc3/docs/checkmspec.html
This task is "suspendable" when invoked from the UI. This means that if you run a verification from the UI, this task will return an immediate failure once a single object fails the verification. However, when run from the Command-Line this task will run to completion (i.e. even if an object fails it will continue processing to completion).
- Author:
- richardrodgers
- See Also:
TransmitManifest
-
-
Constructor Summary
Constructors Constructor Description VerifyManifest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.dspace.curate.Curator curator, String taskId)intperform(org.dspace.content.DSpaceObject dso)Perform the 'Verify Manifest' task
-
-
-
Method Detail
-
init
public void init(org.dspace.curate.Curator curator, String taskId) throws IOException- Specified by:
initin interfaceorg.dspace.curate.CurationTask- Overrides:
initin classorg.dspace.curate.AbstractCurationTask- Throws:
IOException
-
perform
public int perform(org.dspace.content.DSpaceObject dso) throws IOExceptionPerform the 'Verify Manifest' task- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
dso- the DSpace Object to be verified- Returns:
- integer which represents Curator return status
- Throws:
IOException- if I/O error
-
-