Class Transfer


  • public class Transfer
    extends java.lang.Object
    Represents a single act of a third party transfer of one file. The transfer is performed in the constructor. This class will not be very efficient for transferring many files, because each transfer builds its own control channel connection. Instead, it is appropriate to use this class instances for transfers of single files, or for testing server's capabilities.
    See Also:
    TransferParams
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static org.apache.commons.logging.Log logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      Transfer​(java.lang.String sourceServer, int sourcePort, java.lang.String sourceDir, java.lang.String sourceFile, java.lang.String destServer, int destPort, java.lang.String destDir, java.lang.String destFile, TransferParams params)
      Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/sourceDir/sourceFile to (grid)ftp://destServer:destPort/destDir/destFile.
      Transfer​(java.lang.String sourceServer, int sourcePort, java.lang.String sourceSubject, java.lang.String sourceDir, java.lang.String sourceFile, java.lang.String destServer, int destPort, java.lang.String destSubject, java.lang.String destDir, java.lang.String destFile, TransferParams params)
      Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/sourceDir/sourceFile to (grid)ftp://destServer:destPort/destDir/destFile.
      Transfer​(java.lang.String sourceServer, int sourcePort, Authorization sourceSubject, java.lang.String absoluteSourceFile, java.lang.String destServer, int destPort, Authorization destSubject, java.lang.String absoluteDestFile, TransferParams params)
      Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/absoluteSourceFile to (grid)ftp://destServer:destPort/absoluteDestFile.
    • Field Detail

      • logger

        static org.apache.commons.logging.Log logger
    • Constructor Detail

      • Transfer

        public Transfer​(java.lang.String sourceServer,
                        int sourcePort,
                        java.lang.String sourceDir,
                        java.lang.String sourceFile,
                        java.lang.String destServer,
                        int destPort,
                        java.lang.String destDir,
                        java.lang.String destFile,
                        TransferParams params)
                 throws java.io.IOException,
                        ServerException,
                        ClientException
        Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/sourceDir/sourceFile to (grid)ftp://destServer:destPort/destDir/destFile. Any protocol related parameters should be passed in the params object. If params is null, default GridFTP parameters are assumed.
        Throws:
        java.io.IOException
        ServerException
        ClientException
      • Transfer

        public Transfer​(java.lang.String sourceServer,
                        int sourcePort,
                        java.lang.String sourceSubject,
                        java.lang.String sourceDir,
                        java.lang.String sourceFile,
                        java.lang.String destServer,
                        int destPort,
                        java.lang.String destSubject,
                        java.lang.String destDir,
                        java.lang.String destFile,
                        TransferParams params)
                 throws java.io.IOException,
                        ServerException,
                        ClientException
        Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/sourceDir/sourceFile to (grid)ftp://destServer:destPort/destDir/destFile. Any protocol related parameters should be passed in the params object. If params is null, default GridFTP parameters are assumed.
        Throws:
        java.io.IOException
        ServerException
        ClientException
      • Transfer

        public Transfer​(java.lang.String sourceServer,
                        int sourcePort,
                        Authorization sourceSubject,
                        java.lang.String absoluteSourceFile,
                        java.lang.String destServer,
                        int destPort,
                        Authorization destSubject,
                        java.lang.String absoluteDestFile,
                        TransferParams params)
                 throws java.io.IOException,
                        ServerException,
                        ClientException
        Constructor, performing a single third party transfer from (grid)ftp://sourceServer:sourcePort/absoluteSourceFile to (grid)ftp://destServer:destPort/absoluteDestFile. Any protocol related parameters should be passed in the params object. If params is null, default GridFTP parameters are assumed.
        Throws:
        java.io.IOException
        ServerException
        ClientException