protected void networkStatus(ConnectionStatus status) { trigger(status, netC); }
protected void networkException(NetworkException networkException) { trigger(networkException, netC); }
void trigger(KompicsEvent event) { if (event instanceof Msg) { throw new RuntimeException("Not support anymore!"); //trigger(event, net.getPair()); } else { trigger(event, onSelf); } }
sc.writeAndFlush(new MessageWrapper(dc)); component.trigger(new SendDelayed(destination, Transport.TCP)); component.extLog.trace("New TCP channel to {} was created!.", destination.asSocket()); component.networkStatus(ConnectionStatus.established(destination, Transport.TCP)); component.extLog.error("Error while trying to connect to {}! Error was {}", destination, future.cause()); component.networkStatus(ConnectionStatus.dropped(destination, Transport.TCP)); component.trigger(new DropDelayed(destination, Transport.TCP));
udtChannelsByRemote.put(sc.remoteAddress(), sc); address4Remote.put(sc.remoteAddress(), destination.asSocket()); component.trigger(new SendDelayed(destination, Transport.UDT)); SocketUDT socket = NioUdtProvider.socketUDT(sc); socket.setOption(OptionUDT.Maximum_Transfer_Unit, component.udtMSS); component.trigger(new SendDelayed(destination, Transport.UDT)); component.extLog.debug("New UDT channel to {} was created! Properties: \n {} \n {}", new Object[]{destination.asSocket(), socket.toStringOptions(), socket.toStringMonitor()}); component.extLog.error("Error while trying to connect to {}! Error was {}", destination, future.cause()); component.networkStatus(ConnectionStatus.dropped(destination, Transport.UDT)); component.trigger(new DropDelayed(destination, Transport.UDT));
new Object[]{message.toString(), message.getSource(), message.getDestination(), message.getProtocol()}); trigger(message, net);
component.trigger(new SendDelayed(msg.getSource(), Transport.TCP));
component.trigger(new SendDelayed(msg.getSource(), Transport.UDT));