[ 
https://issues.apache.org/jira/browse/OODT-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971185#action_12971185
 ] 

Brian Foster commented on OODT-84:
----------------------------------


- the DataTransfer is what is used to move the file into the archive, therefore 
i think it should be the one to copy the file back out of the archive . . . for 
example, say the files are being store at Amazon S3, if a S3DataTransfer was 
written it could then be used to both ingest and retrieve the file, otherwise 
you would only be able to ingest the file (retrieval would not work in those 
cases)

> Ability for File Manager to stage an ingested Product to one of its clients
> ---------------------------------------------------------------------------
>
>                 Key: OODT-84
>                 URL: https://issues.apache.org/jira/browse/OODT-84
>             Project: OODT
>          Issue Type: New Feature
>          Components: file manager
>    Affects Versions: 0.1-incubating
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.2
>
>
> - This patch will introduce the following method to DataTransfer:
> {noformat}
>       /**
>        * Requires that the data store reference be set, nothing else is used
>        * @param product The product whose data store reference will be copied
>        * @param directory The directory where the data store reference will 
> be copied to
>        * @throws DataTransferException
>        *             If a general error occurs during the transfer.
>        * @throws IOException
>        *             If there is an IO error when performing the transfer.
>        */
>       public void copyProduct(Product product, File directory) throws 
> DataTransferException,
>                       IOException;
> {noformat}
> - There will also be a new File Manager client command line option introduced:
> {noformat}
>        --copyProduct (--productId <id> | --productName <name>) --destPath 
> <directory> [--transferer <factory-class>]
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to