Package org.jgroups

Examples of org.jgroups.Channel.disconnect()


   
    if (channel.isOpen())
    {
      if (channel.isConnected())
      {
        channel.disconnect();
      }
     
      channel.close();
    }
  }
View Full Code Here


        assertEquals(1, rspList.size());
        assertEquals("outerMethod[innerMethod]", rspList.getValue(localAddress));
        assertTrue(rspList.isReceived(localAddress));
        assertFalse(rspList.isSuspected(localAddress));

        channel.disconnect();
        channel.close();

    }

View Full Code Here

    }

    @Override
    public void stop(StopContext context) {
        Channel channel = this.channel.getValue();
        channel.disconnect();
        if (channel instanceof JChannel) {
            try {
                JmxConfigurator.unregisterChannel((JChannel) channel, this.server.getValue(), this.cluster);
            } catch (Exception e) {
                ROOT_LOGGER.debug(e.getMessage(), e);
View Full Code Here

   
    if (channel.isOpen())
    {
      if (channel.isConnected())
      {
        channel.disconnect();
      }
     
      channel.close();
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.