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 Details

    • FileStitcherDriver

      public FileStitcherDriver(DataSource dataSource)
  • Method Details

    • 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 manifest
      manifestId - of the manifest (content-id)
      toDir - destination of reconstituted original content item
      Throws:
      Exception - on error
    • main

      public static void main(String[] args)
      Main