public ChannelGroupFuture disconnect() { Map<Integer, ChannelFuture> futures = new LinkedHashMap<Integer, ChannelFuture>(size()); for (Channel c: serverChannels.values()) { futures.put(c.getId(), c.disconnect().awaitUninterruptibly()); } for (Channel c: nonServerChannels.values()) { futures.put(c.getId(), c.disconnect()); } return new DefaultChannelGroupFuture(this, futures); }
@Override public void stop() { channel.disconnect(); }
protected void handleQuit(Channel channel) { channel.disconnect(); }
/** * log an error message for a duplicate dpid and disconnect this channel. * @param h the IO channel for this switch. */ protected void disconnectDuplicate(OFChannelHandler h) { log.error("Duplicated dpid or incompleted cleanup - " + "disconnecting channel {}", h.getSwitchInfoString()); h.duplicateDpidFound = Boolean.TRUE; h.channel.disconnect(); }
protected void disconnectDuplicate(PcepChannelHandler h) { log.error("Duplicated Pcc IP or incompleted cleanup - " + "disconnecting channel {}", h.getClientInfoString()); h.duplicatePccIdFound = Boolean.TRUE; h.channel.disconnect(); }
protected void disconnectDuplicate(PcepChannelHandler h) { log.error("Duplicated Pcc IP or incompleted cleanup - " + "disconnecting channel {}", h.getClientInfoString()); h.duplicatePccIdFound = Boolean.TRUE; h.channel.disconnect(); }
public Deferred<Object> execute(final TSDB tsdb, final Channel chan, final String[] cmd) { chan.disconnect(); return Deferred.fromResult(null); } }
/** * Log an OpenFlow error message from a switch and disconnect the * channel. * * @param h the IO channel for this switch. * @param error The error message */ protected void logErrorDisconnect(OFChannelHandler h, OFErrorMsg error) { logError(h, error); log.error("Disconnecting switch {}", h.getSwitchInfoString()); h.channel.disconnect(); }
public void disconnect() { if (channel.isConnected()) { channel.disconnect(); } }
@Override protected void channelIdle(ChannelHandlerContext ctx, IdleState state, long lastActivityTimeMillis) throws Exception { ctx.getChannel().disconnect(); } }
/** * -- */ public void dec() { if (0 >= counter.decrementAndGet() && null != channel) { channel.disconnect(); channel.close(); } }
@Override void processOFError(final SwitchChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for desc stats reply (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final SwitchChannelHandler h, final OFError m) { h.log.error("Error waiting for Hello (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final ControllerChannelHandler h, final OFError m) throws IOException { h.log.error("Error waiting for Hello (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final SwitchChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for config reply (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final ControllerChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for Features Request (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override public void operationComplete(ChannelFuture future) throws Exception { ChannelFuture disconnect = transport.disconnect(); chainFutures(disconnect, evt.getFuture()); } });
@Override public void operationComplete(ChannelFuture future) throws Exception { ChannelFuture disconnect = transport.disconnect(); chainFutures(disconnect, evt.getFuture()); } });
@Override protected void doSuspend() throws Exception { if (channel != null) { LOG.debug("ServerBootstrap disconnecting from {}:{}", configuration.getHost(), configuration.getPort()); channel.disconnect().sync(); channel = null; } }
@Override public void tearDown() { PhysicalSwitch.log.info("Switch disconnected {} ", this.featuresReply.getDatapathId()); this.statsMan.stop(); this.channel.disconnect(); this.map.removePhysicalSwitch(this); }