org.globus.ftp.dc
Class ActiveStartTransferTask

java.lang.Object
  extended by org.globus.ftp.dc.Task
      extended by org.globus.ftp.dc.ActiveStartTransferTask

public class ActiveStartTransferTask
extends Task

This task will start the transfer on the supplied socket. The socket is assumed to have been already connected to the remote server (for instance, by active connect task). It is little tricky: it will cause data channel to start a new thread. By the time this task completes, the new thread is running the transfer. Any resulting exceptions are piped to the local control channel.


Field Summary
protected static int RETR
           
protected static int STOR
           
 
Fields inherited from class org.globus.ftp.dc.Task
complete, exception
 
Constructor Summary
ActiveStartTransferTask(DataSink sink, BasicServerControlChannel control, SocketBox box, Session session, DataChannelFactory factory, TransferContext context)
           
ActiveStartTransferTask(DataSource source, BasicServerControlChannel control, SocketBox box, Session session, DataChannelFactory factory, TransferContext context)
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.globus.ftp.dc.Task
setComplete, stop, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOR

protected static final int STOR
See Also:
Constant Field Values

RETR

protected static final int RETR
See Also:
Constant Field Values
Constructor Detail

ActiveStartTransferTask

public ActiveStartTransferTask(DataSink sink,
                               BasicServerControlChannel control,
                               SocketBox box,
                               Session session,
                               DataChannelFactory factory,
                               TransferContext context)

ActiveStartTransferTask

public ActiveStartTransferTask(DataSource source,
                               BasicServerControlChannel control,
                               SocketBox box,
                               Session session,
                               DataChannelFactory factory,
                               TransferContext context)
Method Detail

execute

public void execute()
Specified by:
execute in class Task


Copyright © 2013. All Rights Reserved.