Class EstimateAIPSize

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

    @Distributive
    public class EstimateAIPSize
    extends org.dspace.curate.AbstractCurationTask
    EstimateAIPSize task computes the total number of bytes in all the content files (viz Bitstreams, including logos for containers) of the passed object. If a container, it includes all it's members or children. Note that this is quite inexact (and always too small), since real AIPs will include metadata, etc, but should be adequate for a gross approximation. Also note that the size estimates exclude files in bundles that are filtered, as defined by setContentFilter on the AIP Packer.
    Author:
    richardrodgers
    See Also:
    TransmitAIP
    • Field Summary

      • Fields inherited from class org.dspace.curate.AbstractCurationTask

        communityService, configurationService, curator, handleService, itemService, taskId
    • Constructor Summary

      Constructors 
      Constructor Description
      EstimateAIPSize()  
    • Constructor Detail

      • EstimateAIPSize

        public EstimateAIPSize()
    • Method Detail

      • perform

        public int perform​(org.dspace.content.DSpaceObject dso)
                    throws IOException
        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Throws:
        IOException