Class TransmitManifest

  • All Implemented Interfaces:
    org.dspace.curate.CurationTask

    @Distributive
    public class TransmitManifest
    extends org.dspace.curate.AbstractCurationTask
    TransmitManifest task produces a manifest file for the content files contained in the passed DSpace object, and forwards it to the replication system for transmission (upload). If the DSpace Object is a container, the task produces a multi-level set of manifests representing the container.

    The manifests produced conform to the CDL Checkm v0.7 manifest format spec. http://www.cdlib.org/uc3/docs/checkmspec.html

    Author:
    richardrodgers
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static String MANIFEST_EXTENSION  
      • Fields inherited from class org.dspace.curate.AbstractCurationTask

        configurationService, curator, handleService, taskId
    • Constructor Detail

      • TransmitManifest

        public TransmitManifest()
    • Method Detail

      • init

        public void init​(org.dspace.curate.Curator curator,
                         String taskId)
                  throws IOException
        Specified by:
        init in interface org.dspace.curate.CurationTask
        Overrides:
        init in class org.dspace.curate.AbstractCurationTask
        Throws:
        IOException
      • perform

        public int perform​(org.dspace.content.DSpaceObject dso)
                    throws IOException
        Perform 'Transmit Manifest' task

        Actually generates manifest and transmits to Replica ObjectStore

        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        dso - DSpace Object to perform on
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error