goldengate.commandexec.server
Class LocalExecServerHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
goldengate.commandexec.server.LocalExecServerHandler
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
- Direct Known Subclasses:
- LocalExecSslServerHandler
public class LocalExecServerHandler
- extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Handles a server-side channel for LocalExec.
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
Method Summary |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
|
static boolean |
isShutdown(org.jboss.netty.channel.Channel channel)
Is the Local Exec Server going Shutdown |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent evt)
|
void |
setNewDelay(long newdelay)
Change the delay to the specific value. |
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected LocalExecServerPipelineFactory factory
isShutdown
protected static boolean isShutdown
answered
protected boolean answered
LocalExecServerHandler
public LocalExecServerHandler(LocalExecServerPipelineFactory factory,
long newdelay)
- Constructor with a specific delay
- Parameters:
newdelay
-
isShutdown
public static boolean isShutdown(org.jboss.netty.channel.Channel channel)
- Is the Local Exec Server going Shutdown
- Parameters:
channel
- associated channel
- Returns:
- True if in Shutdown
channelConnected
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
- Overrides:
channelConnected
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
- Throws:
Exception
channelDisconnected
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
- Overrides:
channelDisconnected
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
- Throws:
Exception
setNewDelay
public void setNewDelay(long newdelay)
- Change the delay to the specific value. Need to be called before any receive message.
- Parameters:
newdelay
-
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent evt)
- Overrides:
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
- Overrides:
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.