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

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

public class RemoteDataTransferer
extends Object
implements DataTransfer

Version:
$Revision: 12226 $

An implementation of the DataTransfer interface that transfers files to a remote file manager over XML-RPC, using the File Manager Client.

Author:
mattmann, bfoster

Field Summary
 
Fields inherited from interface org.apache.oodt.cas.filemgr.datatransfer.DataTransfer
X_POINT_ID
 
Constructor Summary
RemoteDataTransferer(int chunkSz)
           
 
Method Summary
 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

RemoteDataTransferer

public RemoteDataTransferer(int chunkSz)
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.


Copyright © 1999-2011 Apache OODT. All Rights Reserved.