org.apache.oodt.cas.filemgr.datatransfer
Class LocalDataTransferer
java.lang.Object
org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferer
- All Implemented Interfaces:
- DataTransfer
public class LocalDataTransferer
- extends Object
- implements DataTransfer
- Version:
- $Revision: 13181 $
An implementation of the DataTransfer
interface that moves products
that are available via URIs on the same machine, through an NFS mounted disk,
or via the locally mounted file repository.
- Author:
- mattmann, bfoster
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalDataTransferer
public LocalDataTransferer()
Default Constructor
setFileManagerUrl
public void setFileManagerUrl(URL url)
- Specified by:
setFileManagerUrl
in interface DataTransfer
- Parameters:
url
- The URL to the File Manager that this transferer will be
transferring Products to.
transferProduct
public void transferProduct(Product product)
throws DataTransferException,
IOException
- Specified by:
transferProduct
in interface DataTransfer
- Parameters:
product
- The product that is being transferred. The product should have
both its origFileLocation, as well as its dataStoreRefs filled
in to perform the transfer.
- Throws:
DataTransferException
- If a general error occurs during the transfer.
IOException
- If there is an IO eerror when performing the transfer.
main
public static void main(String[] args)
throws DataTransferException,
IOException,
URISyntaxException
- Parameters:
args
-
- Throws:
DataTransferException
IOException
URISyntaxException
Copyright © 1999-2011 Apache OODT. All Rights Reserved.