Package org.duracloud.stitch
Class FileStitcherDriver
- java.lang.Object
-
- org.duracloud.stitch.FileStitcherDriver
-
public class FileStitcherDriver extends Object
This class is the command-line driver for reconstituting a single content item which has previously been chunked into DuraStore.- Author:
- Andrew Woods Date: 9/5/11
-
-
Constructor Summary
Constructors Constructor Description FileStitcherDriver(DataSource dataSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Mainvoidstitch(String spaceId, String manifestId, File toDir)This method retrieves the chunks manifest specified by the arg space-id and manifest-id (content-id), then reconstitues the chunks defined in the manifest into the original file at the arg to-directory.
-
-
-
Constructor Detail
-
FileStitcherDriver
public FileStitcherDriver(DataSource dataSource)
-
-
Method Detail
-
stitch
public void stitch(String spaceId, String manifestId, File toDir) throws Exception
This method retrieves the chunks manifest specified by the arg space-id and manifest-id (content-id), then reconstitues the chunks defined in the manifest into the original file at the arg to-directory.- Parameters:
spaceId- containing chunks manifestmanifestId- of the manifest (content-id)toDir- destination of reconstituted original content item- Throws:
Exception- on error
-
main
public static void main(String[] args)
Main
-
-