Class FTPServerFacade.LocalControlChannel
java.lang.Object
org.globus.ftp.vanilla.BasicClientControlChannel
org.globus.ftp.vanilla.FTPServerFacade.LocalControlChannel
- All Implemented Interfaces:
BasicServerControlChannel
- Enclosing class:
FTPServerFacade
protected class FTPServerFacade.LocalControlChannel
extends BasicClientControlChannel
implements BasicServerControlChannel
This inner class represents a local control channel.
One process can write replies using BasicServerControlChannel
interface, and the other can read replies using
BasicClientControlChannel interface.
-
Field Summary
FieldsFields inherited from class BasicClientControlChannel
WAIT_FOREVER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BasicClientControlChannel
waitFor
-
Field Details
-
replies
-
replyCount
private int replyCount
-
-
Constructor Details
-
LocalControlChannel
public LocalControlChannel()
-
-
Method Details
-
push
-
pop
- Throws:
InterruptedException
-
ready
public boolean ready() -
getReplyCount
public int getReplyCount()- Specified by:
getReplyCountin interfaceBasicServerControlChannel- Returns:
- number of replies sent so far
-
resetReplyCount
public void resetReplyCount()Description copied from interface:BasicServerControlChannelset reply count to 0. If this function is used consequently at the beginning of each transfer, then reply count will always indicate number of messages of last transfer.- Specified by:
resetReplyCountin interfaceBasicServerControlChannel
-
read
- Specified by:
readin classBasicClientControlChannel- Throws:
IOExceptionFTPReplyParseExceptionServerException
-
write
Description copied from interface:BasicServerControlChannelwrite reply to the control channel- Specified by:
writein interfaceBasicServerControlChannel
-
waitFor
public void waitFor(Flag aborted, int ioDelay, int maxWait) throws ServerException, IOException, InterruptedException Description copied from class:BasicClientControlChannelBlock 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.- Specified by:
waitForin classBasicClientControlChannel- Parameters:
maxWait- timeout in miliseconds- Throws:
ServerExceptionIOExceptionInterruptedException
-
abortTransfer
public void abortTransfer()- Specified by:
abortTransferin classBasicClientControlChannel
-