Package org.globus.ftp.vanilla
Class BasicClientControlChannel
- java.lang.Object
-
- org.globus.ftp.vanilla.BasicClientControlChannel
-
- Direct Known Subclasses:
FTPControlChannel
,FTPServerFacade.LocalControlChannel
public abstract class BasicClientControlChannel extends Object
Basic subset of client side control channel functionality, enough to implement the part of transfer after sending transfer command (RETR) up until receiving 200 reply.
-
-
Field Summary
Fields Modifier and Type Field Description static int
WAIT_FOREVER
-
Constructor Summary
Constructors Constructor Description BasicClientControlChannel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
abortTransfer()
abstract Reply
read()
void
waitFor(Flag flag, int waitDelay)
Return when reply is waitingabstract void
waitFor(Flag flag, int waitDelay, int maxWait)
Block until reply is waiting in the control channel, or after timeout (maxWait), or when flag changes to true.
-
-
-
Field Detail
-
WAIT_FOREVER
public static final int WAIT_FOREVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public abstract Reply read() throws ServerException, IOException, FTPReplyParseException
-
waitFor
public void waitFor(Flag flag, int waitDelay) throws ServerException, IOException, InterruptedException
Return when reply is waiting
-
waitFor
public abstract void waitFor(Flag flag, int waitDelay, int maxWait) throws ServerException, IOException, InterruptedException
Block until reply is waiting in the control channel, or after timeout (maxWait), or when flag changes to true. If maxWait == WAIT_FOREVER, do not timeout.- Parameters:
maxWait
- timeout in miliseconds- Throws:
ServerException
IOException
InterruptedException
-
abortTransfer
public abstract void abortTransfer()
-
-