@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { component.channels.channelInactive(ctx, protocol); super.channelInactive(ctx); } }
public NotifyAck reply() { return new NotifyAck(this.getDestination(), this.getSource(), this.getProtocol(), id); }
void send(Msg msg) { send(new MessageWrapper(msg)); }
@Override public void channelActive(ChannelHandlerContext ctx) { super.channelActive(ctx); UdtChannel channel = (UdtChannel) ctx.channel(); component.channels.addLocalSocket(channel); InetSocketAddress other = channel.remoteAddress(); channel.writeAndFlush(new DisambiguateConnection(component.self, new NettyAddress(other), protocol, component.boundUDTPort, true)); }
@Override public void run() { setCustomMDC(); try { channels.monitor(); } finally { MDC.clear(); } } }, monitoringInterval, monitoringInterval, TimeUnit.MILLISECONDS
@Override protected void messageReceived(ChannelHandlerContext ctx, Msg msg) throws Exception { component.channels.checkTCPChannel(msg, (SocketChannel) ctx.channel()); super.messageReceived(ctx, msg); }
@Override protected void messageReceived(ChannelHandlerContext ctx, Msg msg) throws Exception { component.channels.checkUDTChannel(msg, (UdtChannel) ctx.channel()); super.messageReceived(ctx, msg); }
@Override public Component setupNetwork(ComponentProxy proxy) { Component nettyC = create(NettyNetwork.class, new NettyInit(init.selfAddress)); return nettyC; }
void notify(MessageNotify.Req notify, MessageNotify.Resp response) { answer(notify, response); } }
protected void networkStatus(ConnectionStatus status) { trigger(status, netC); }
private <C extends Channel> C minChannel(Set<C> channels) { C min = null; for (C channel : channels) { if ((min == null)) { min = channel; } else if (channel2Id(channel) < channel2Id(min)) { min = channel; } } return min; }
@Override public void handle(SendDelayed event) { messages.retry(event); } };
@Override public void handle(DropDelayed event) { messages.drop(event); } };
public DirectMessage(Address src, Address dst, Transport protocol) { this.header = new DirectHeader(src, dst, protocol); }
@Override public void channelActive(ChannelHandlerContext ctx) { super.channelActive(ctx); SocketChannel channel = (SocketChannel) ctx.channel(); component.channels.addLocalSocket(channel); InetSocketAddress other = channel.remoteAddress(); DisambiguateConnection r = new DisambiguateConnection(component.self, new NettyAddress(other), protocol, component.boundUDTPort, true); channel.writeAndFlush(r); } }
void send(MessageNotify.Req notify) { send(new MessageWrapper(notify)); }
@Override public void run() { setCustomMDC(); try { channels.monitor(); } finally { MDC.clear(); } } }, monitoringInterval, monitoringInterval, TimeUnit.MILLISECONDS);
@Override public Component setupNetwork(ComponentProxy proxy) { Component nettyC = create(NettyNetwork.class, new NettyInit(init.selfAddress)); return nettyC; }
void notify(MessageNotify.Req notify) { answer(notify); }
protected void networkException(NetworkException networkException) { trigger(networkException, netC); }