|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.ftp.core.data.FtpTransferControl
public class FtpTransferControl

Main class that handles transfers and their execution
| Constructor Summary | |
|---|---|
FtpTransferControl(FtpSession session)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the FtpTransferControl (called when the data connection must be over like from clear of FtpDataAsyncConn, abort from ABOR
or ending control connection from NetworkHandler. |
FtpTransfer |
getExecutingFtpTransfer()
|
boolean |
isFtpTransferExecuting()
Is a command currently executing (called from NetworkHandler when
a message is received to see if another transfer command is already in
execution, which is not allowed) |
boolean |
openDataConnection()
Wait for the client to be connected (Passive) or Wait for the server to be connected to the client (Active) |
void |
runTrueRetrieve()
Run the retrieve operation if necessary (called from channelInterestChanged in DataNetworkHandler) |
void |
setClosedDataChannel()
Set the closed Channel (from channelClosed of DataNetworkHandler) |
void |
setEndOfTransfer()
Set the current transfer as finished. |
void |
setNewFtpTransfer(FtpCommandCode command,
FtpFile file)
Add a new transfer to be executed. |
void |
setNewFtpTransfer(FtpCommandCode command,
List<String> list,
String path)
Add a new transfer to be executed. |
void |
setOpenedDataChannel(org.jboss.netty.channel.Channel channel,
DataNetworkHandler dataNetworkHandler)
Set the new opened Channel (from channelConnected of DataNetworkHandler) |
void |
setPreEndOfTransfer()
Called by messageReceived, channelClosed (from DataNetworkHandler
) and trueRetrieve (from FtpFile) when the transfer is over
or by channelClosed |
void |
setTransferAbortedFromInternal(boolean write)
To enable abort from internal error |
void |
waitForDataNetworkHandlerReady()
Wait for the DataNetworkHandler to be ready (from trueRetrieve of FtpFile) |
void |
waitForEndOfTransfer()
Wait for the current transfer to finish, called from FtpTransferExecutor |
org.jboss.netty.channel.Channel |
waitForOpenedDataChannel()
Wait that the new opened connection is ready (same method in FtpDataAsyncConn from openConnection) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FtpTransferControl(FtpSession session)
session - | Method Detail |
|---|
public void waitForDataNetworkHandlerReady()
throws InterruptedException
FtpFile)
InterruptedException
public void setOpenedDataChannel(org.jboss.netty.channel.Channel channel,
DataNetworkHandler dataNetworkHandler)
DataNetworkHandler)
channel - dataNetworkHandler -
public org.jboss.netty.channel.Channel waitForOpenedDataChannel()
throws InterruptedException
FtpDataAsyncConn from openConnection)
InterruptedExceptionpublic void setClosedDataChannel()
DataNetworkHandler)
public boolean openDataConnection()
throws goldengate.common.command.exception.Reply425Exception
goldengate.common.command.exception.Reply425Exception
public void setNewFtpTransfer(FtpCommandCode command,
FtpFile file)
command - file -
public void setNewFtpTransfer(FtpCommandCode command,
List<String> list,
String path)
command - list - path - as Original Pathpublic boolean isFtpTransferExecuting()
NetworkHandler when
a message is received to see if another transfer command is already in
execution, which is not allowed)
public FtpTransfer getExecutingFtpTransfer()
throws FtpNoTransferException
FtpNoTransferExceptionpublic void runTrueRetrieve()
DataNetworkHandler)
public void setEndOfTransfer()
FtpTransferExecutor when a transfer is over.
public void setTransferAbortedFromInternal(boolean write)
write - True means the message is write back to the control command,
false it is only preparedpublic void setPreEndOfTransfer()
DataNetworkHandler
) and trueRetrieve (from FtpFile) when the transfer is over
or by channelClosed
public void waitForEndOfTransfer()
throws InterruptedException
FtpTransferExecutor
InterruptedExceptionpublic void clear()
FtpDataAsyncConn, abort from ABOR
or ending control connection from NetworkHandler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||