Package org.dspace.ctask.replicate
Class TransmitAIP
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.TransmitAIP
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
- Direct Known Subclasses:
TransmitSingleAIP
@Suspendable(invoked=INTERACTIVE) public class TransmitAIP extends org.dspace.curate.AbstractCurationTaskTransmitAIP task creates an AIP suitable for replication, and forwards it to the replication system for transmission (upload).The type of AIP produced is based on the 'packer.pkgtype' setting in 'replicate.cfg'. See the org.dspace.pack.PackerFactory for more info.
This task is "suspendable" when invoked from the UI. If a single AIP fails to be generated and transmitted to storage, we should inform the user ASAP. We wouldn't want them to assume everything was transferred successfully, if there were actually underlying errors.
Note that this task has a companion task called TransmitSingleAIP which ensures that no child/member objects are transmitted.
- Author:
- richardrodgers
- See Also:
PackerFactory,TransmitSingleAIP
-
-
Constructor Summary
Constructors Constructor Description TransmitAIP()
-
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 'Transmit AIP' 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 'Transmit AIP' taskActually generates the AIP and transmits it to the replica ObjectStore
- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
dso- DSpace Object to perform on- Returns:
- integer which represents Curator return status
- Throws:
IOException- if I/O error
-
-