|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.channel.SimpleChannelHandler
goldengate.ftp.core.data.handler.DataNetworkHandler
public class DataNetworkHandler

Network handler for Data connections
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
|---|
org.jboss.netty.channel.ChannelHandler.Sharable |
| Constructor Summary | |
|---|---|
DataNetworkHandler(FtpConfiguration configuration,
DataBusinessHandler handler,
boolean active)
Constructor from DataBusinessHandler |
|
| Method Summary | |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
Run firstly executeChannelClosed. |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
Initialize the Handler. |
void |
channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext arg0,
org.jboss.netty.channel.ChannelStateEvent arg1)
To enable continues of Retrieve operation (prevent OOM) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
Default exception task: close the current connection after calling exceptionLocalCaught. |
DataBusinessHandler |
getDataBusinessHandler()
|
FtpSession |
getFtpSession()
|
NetworkHandler |
getNetworkHandler()
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
Act as needed according to the receive DataBlock message |
void |
setCorrectCodec()
Set the CODEC according to the mode. |
void |
unlockModeCodec()
Unlock the Mode Codec from openConnection of FtpTransferControl |
boolean |
writeMessage(String message)
Write a simple message (like LIST) and wait for it |
| Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
|---|
bindRequested, channelBound, channelDisconnected, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataNetworkHandler(FtpConfiguration configuration,
DataBusinessHandler handler,
boolean active)
configuration - handler - active - | Method Detail |
|---|
public DataBusinessHandler getDataBusinessHandler()
throws FtpNoConnectionException
FtpNoConnectionExceptionpublic FtpSession getFtpSession()
public NetworkHandler getNetworkHandler()
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelHandlerExceptionSimpleChannelHandler.channelClosed(org.jboss.netty.channel.ChannelHandlerContext,
org.jboss.netty.channel.ChannelStateEvent)
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
channelConnected in class org.jboss.netty.channel.SimpleChannelHandlerSimpleChannelHandler.channelConnected(org.jboss.netty.channel.ChannelHandlerContext,
org.jboss.netty.channel.ChannelStateEvent)public void setCorrectCodec()
public void unlockModeCodec()
FtpTransferControl
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught in class org.jboss.netty.channel.SimpleChannelHandlerSimpleChannelHandler.exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext,
org.jboss.netty.channel.ExceptionEvent)
public void channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext arg0,
org.jboss.netty.channel.ChannelStateEvent arg1)
channelInterestChanged in class org.jboss.netty.channel.SimpleChannelHandlerSimpleChannelHandler.channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext,
org.jboss.netty.channel.ChannelStateEvent)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
messageReceived in class org.jboss.netty.channel.SimpleChannelHandlerSimpleChannelHandler.messageReceived(org.jboss.netty.channel.ChannelHandlerContext,
org.jboss.netty.channel.MessageEvent)public boolean writeMessage(String message)
message -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||