public void stop() { if(channel != null) { channel.close(); // disconnects from channel and closes it channel=null; } }
@Override public void close() { try { channel.close(); } catch (Exception ex) { log.warn("Failed to close channel[" + channel + "] gracefully", ex); } }
public void windowClosing(WindowEvent e) { channel.close(); System.exit(0); }
public void stop() { if(!no_channel) { try { channel.close(); } catch(Exception ex) { System.err.println(ex); } } mainFrame.setVisible(false); mainFrame.dispose(); }
public void stop() { if(channel != null) { channel.close(); disp.stop(); } channel=null; disp=null; }
protected void shutdownExternal() throws Exception { try { if (adapter != null) { adapter.stop(); } channel.close(); } finally { adapter = null; channel = null; } }
@Override protected void finalize() { this.dispatcher.getChannel().close(); }
public void destroy() { System.out.println("DESTROY!!!!!"); if(clusterChannel != null && clusterChannel.isConnected()) { // This calls disconnect() first clusterChannel.close(); } }
public Void run() { channel.disconnect(); channel.close(); return null; } });
public void stop() { if(disp != null) { disp.stop(); disp=null; } if(channel != null) { channel.close(); channel=null; } }
public void stop() { if(channel != null) { channel.close(); disp.stop(); } channel=null; disp=null; }
public void actionPerformed(ActionEvent e) { channel.disconnect(); channel.close(); System.exit(0); } });
public void stop() { if(disp != null) { disp.stop(); disp=null; } if(channel != null) { channel.close(); channel=null; } }
public void closeChannel(String name) throws ZoneChannelException { Channel channel = channels.remove(name); if (channel == null) { throw new ZoneChannelException("Channel not found: " + name); } channel.close(); }
protected void shutdownExternal() throws Exception { try { if (adapter != null) { adapter.stop(); } channel.close(); } finally { adapter = null; channel = null; } }
public void leaveNetwork() { this.log.start(); if (this.jndiHashMapChannel != null && this.jndiHashMapChannel.isConnected()) { this.jndiHashMapChannel.close(); } if (this.discoveryCoordinationChannel.isConnected()) { this.discoveryCoordinationChannel.close(); this.discoveryHashMapChannel.close(); } this.log.end(); }
public void disconnect() { if (channel != null && channel.isOpen()) { if (log.isInfoEnabled()) log.info("Disconnecting and closing the Channel"); channel.disconnect(); channel.close(); } }
public void run() { listAlphabet(); channel.disconnect(); channel.close(); } }
public void destroy() { if (disp != null) { try { MethodCall call = new MethodCall("removeNode", new Object[] {panel.my_addr}, new String[] {Object.class.getName()}); disp.callRemoteMethods(null, call, GroupRequest.GET_ALL, 0); } catch (Exception e) { log.error(e); } channel.close(); disp = null; if (panel != null) { panel.stop(); panel = null; } } }
@Override public void channelConnected(Channel channel) { // Validate view String localName = channel.getName(); Address localAddress = channel.getAddress(); for (Address address: channel.getView()) { String name = channel.getName(address); if ((name != null) && name.equals(localName) && !address.equals(localAddress)) { channel.close(); throw JGroupsMessages.MESSAGES.duplicateNodeName(this.factory.getValue().getProtocolStackConfiguration().getEnvironment().getNodeName()); } } }