openr66.protocol.networkhandler
Class NetworkServerHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler
openr66.protocol.networkhandler.NetworkServerHandler
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
- Direct Known Subclasses:
- NetworkSslServerHandler
public class NetworkServerHandler
- extends org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler
Network Server Handler (Requester side)
- Author:
- frederic bregier
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
Field Summary |
protected goldengate.common.database.DbSession |
dbSession
The Database connection attached to this NetworkChannel
shared among all associated LocalChannels |
protected boolean |
isServer
Is this Handler a server side |
protected boolean |
isSSL
Does this Handler is for SSL |
protected boolean |
keepAlivedSent
To handle the keep alive |
Method Summary |
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
channelIdle(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.timeout.IdleStateEvent e)
|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
|
goldengate.common.database.DbSession |
getDbSession()
|
boolean |
isSsl()
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
|
void |
setKeepAlivedSent()
|
Methods inherited from class org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler |
handleUpstream |
Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
bindRequested, channelBound, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbSession
protected volatile goldengate.common.database.DbSession dbSession
- The Database connection attached to this NetworkChannel
shared among all associated LocalChannels
isSSL
protected volatile boolean isSSL
- Does this Handler is for SSL
isServer
protected boolean isServer
- Is this Handler a server side
keepAlivedSent
protected volatile boolean keepAlivedSent
- To handle the keep alive
NetworkServerHandler
public NetworkServerHandler(boolean isServer)
- Parameters:
isServer
-
channelClosed
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
- Overrides:
channelClosed
in class org.jboss.netty.channel.SimpleChannelHandler
channelConnected
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws OpenR66ProtocolNetworkException
- Overrides:
channelConnected
in class org.jboss.netty.channel.SimpleChannelHandler
- Throws:
OpenR66ProtocolNetworkException
channelIdle
public void channelIdle(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.timeout.IdleStateEvent e)
throws Exception
- Overrides:
channelIdle
in class org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler
- Throws:
Exception
setKeepAlivedSent
public void setKeepAlivedSent()
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
- Overrides:
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
- Overrides:
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelHandler
getDbSession
public goldengate.common.database.DbSession getDbSession()
- Returns:
- the dbSession
isSsl
public boolean isSsl()
- Returns:
- True if this Handler is for SSL
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.