Package org.globus.ftp.vanilla
Class BasicClientControlChannel
java.lang.Object
org.globus.ftp.vanilla.BasicClientControlChannel
- Direct Known Subclasses:
FTPControlChannel
,FTPServerFacade.LocalControlChannel
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WAIT_FOREVER
public static final int WAIT_FOREVER- See Also:
-
-
Constructor Details
-
BasicClientControlChannel
public BasicClientControlChannel()
-
-
Method Details
-
read
-
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()
-