Package org.globus.ftp.dc
Class ActiveStartTransferTask
- java.lang.Object
-
- org.globus.ftp.dc.Task
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.globus.ftp.dc.Task
setComplete, stop, waitFor
-
-
-
-
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)
-
-