Package org.dspace.ctask.replicate
Class EstimateAIPSize
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.EstimateAIPSize
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
@Distributive public class EstimateAIPSize extends org.dspace.curate.AbstractCurationTaskEstimateAIPSize 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 bysetContentFilteron the AIP Packer.- Author:
- richardrodgers
- See Also:
TransmitAIP
-
-
Constructor Summary
Constructors Constructor Description EstimateAIPSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intperform(org.dspace.content.DSpaceObject dso)
-
-
-
Method Detail
-
perform
public int perform(org.dspace.content.DSpaceObject dso) throws IOException- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Throws:
IOException
-
-