Class NettyClientServerCommunicationSystemServerSide
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<TOMMessage>
-
- bftsmart.communication.client.netty.NettyClientServerCommunicationSystemServerSide
-
- All Implemented Interfaces:
CommunicationSystemServerSide
,io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public class NettyClientServerCommunicationSystemServerSide extends io.netty.channel.SimpleChannelInboundHandler<TOMMessage> implements CommunicationSystemServerSide
-
-
Constructor Summary
Constructors Constructor Description NettyClientServerCommunicationSystemServerSide(ServerViewController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelActive(io.netty.channel.ChannelHandlerContext ctx)
void
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
protected void
channelRead0(io.netty.channel.ChannelHandlerContext ctx, TOMMessage sm)
void
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)
int[]
getClients()
void
send(int[] targets, TOMMessage sm, boolean serializeClassHeaders)
void
setRequestReceiver(RequestReceiver tl)
void
shutdown()
void
toRemove(java.lang.Integer key)
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
NettyClientServerCommunicationSystemServerSide
public NettyClientServerCommunicationSystemServerSide(ServerViewController controller)
-
-
Method Detail
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceCommunicationSystemServerSide
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, TOMMessage sm) throws java.lang.Exception
- Specified by:
channelRead0
in classio.netty.channel.SimpleChannelInboundHandler<TOMMessage>
- Throws:
java.lang.Exception
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classio.netty.channel.ChannelInboundHandlerAdapter
-
toRemove
public void toRemove(java.lang.Integer key)
-
setRequestReceiver
public void setRequestReceiver(RequestReceiver tl)
- Specified by:
setRequestReceiver
in interfaceCommunicationSystemServerSide
-
send
public void send(int[] targets, TOMMessage sm, boolean serializeClassHeaders)
- Specified by:
send
in interfaceCommunicationSystemServerSide
-
getClients
public int[] getClients()
- Specified by:
getClients
in interfaceCommunicationSystemServerSide
-
-