org.edg.data.reptor.storage
Class GlobusURLCopyNativeImpl

java.lang.Object
  |
  +--org.edg.data.reptor.storage.GlobusURLCopyNativeImpl
All Implemented Interfaces:
GlobusURLCopy

public class GlobusURLCopyNativeImpl
extends java.lang.Object
implements GlobusURLCopy

This class contains the native calls to the globus URL-COPY command.

Version:
$Id $
Author:
Peter Kunszt

Constructor Summary
GlobusURLCopyNativeImpl(Configuration config)
           
 
Method Summary
 void copy()
          Do the copy.
 void setBlockSize(int size)
          Set the block size
 void setDestinationUri(java.net.URI dest)
          Set the destination URI.
 void setNumberOfStreams(int nstreams)
          Set the number of streams - this has no effect in CoG.
 void setSourceUri(java.net.URI source)
          Set the source URI.
 void setTCPBufferSize(int size)
          Set the tcp buffer size
 void useThirdPartyCopy()
          Set the third party copy flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusURLCopyNativeImpl

public GlobusURLCopyNativeImpl(Configuration config)
                        throws FileHandleException
Method Detail

setSourceUri

public void setSourceUri(java.net.URI source)
Set the source URI.

Specified by:
setSourceUri in interface GlobusURLCopy

setDestinationUri

public void setDestinationUri(java.net.URI dest)
Set the destination URI.

Specified by:
setDestinationUri in interface GlobusURLCopy

useThirdPartyCopy

public void useThirdPartyCopy()
Set the third party copy flag.

Specified by:
useThirdPartyCopy in interface GlobusURLCopy

setNumberOfStreams

public void setNumberOfStreams(int nstreams)
Set the number of streams - this has no effect in CoG.

Specified by:
setNumberOfStreams in interface GlobusURLCopy

setBlockSize

public void setBlockSize(int size)
Set the block size


setTCPBufferSize

public void setTCPBufferSize(int size)
Set the tcp buffer size


copy

public void copy()
          throws FileCopierException
Do the copy.

Specified by:
copy in interface GlobusURLCopy
FileCopierException