org.globus.ftp.vanilla
Class BasicClientControlChannel

java.lang.Object
  extended by org.globus.ftp.vanilla.BasicClientControlChannel
Direct Known Subclasses:
FTPControlChannel, FTPServerFacade.LocalControlChannel

public abstract class BasicClientControlChannel
extends java.lang.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
static int WAIT_FOREVER
           
 
Constructor Summary
BasicClientControlChannel()
           
 
Method Summary
abstract  void abortTransfer()
           
abstract  Reply read()
           
 void waitFor(Flag flag, int waitDelay)
          Return when reply is waiting
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_FOREVER

public static final int WAIT_FOREVER
See Also:
Constant Field Values
Constructor Detail

BasicClientControlChannel

public BasicClientControlChannel()
Method Detail

read

public abstract Reply read()
                    throws ServerException,
                           java.io.IOException,
                           FTPReplyParseException
Throws:
ServerException
java.io.IOException
FTPReplyParseException

waitFor

public void waitFor(Flag flag,
                    int waitDelay)
             throws ServerException,
                    java.io.IOException,
                    java.lang.InterruptedException
Return when reply is waiting

Throws:
ServerException
java.io.IOException
java.lang.InterruptedException

waitFor

public abstract void waitFor(Flag flag,
                             int waitDelay,
                             int maxWait)
                      throws ServerException,
                             java.io.IOException,
                             java.lang.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
java.io.IOException
java.lang.InterruptedException

abortTransfer

public abstract void abortTransfer()


Copyright © 2013. All Rights Reserved.