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 voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, TOMMessage sm)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)int[]getClients()voidsend(int[] targets, TOMMessage sm, boolean serializeClassHeaders)voidsetRequestReceiver(RequestReceiver tl)voidshutdown()voidtoRemove(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:
shutdownin interfaceCommunicationSystemServerSide
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, TOMMessage sm) throws java.lang.Exception- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<TOMMessage>- Throws:
java.lang.Exception
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
toRemove
public void toRemove(java.lang.Integer key)
-
setRequestReceiver
public void setRequestReceiver(RequestReceiver tl)
- Specified by:
setRequestReceiverin interfaceCommunicationSystemServerSide
-
send
public void send(int[] targets, TOMMessage sm, boolean serializeClassHeaders)- Specified by:
sendin interfaceCommunicationSystemServerSide
-
getClients
public int[] getClients()
- Specified by:
getClientsin interfaceCommunicationSystemServerSide
-
-