org.apache.oodt.cas.filemgr.datatransfer
Class LocalDataTransferer

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferer
All Implemented Interfaces:
DataTransfer

public class LocalDataTransferer
extends Object
implements DataTransfer

Version:
$Revision: 12226 $

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

Field Summary
 
Fields inherited from interface org.apache.oodt.cas.filemgr.datatransfer.DataTransfer
X_POINT_ID
 
Constructor Summary
LocalDataTransferer()
           Default Constructor
 
Method Summary
static void main(String[] args)
           
 void setFileManagerUrl(URL url)
           
 void transferProduct(Product product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDataTransferer

public LocalDataTransferer()

Default Constructor

Method Detail

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.