Package org.jgroups.mux

Examples of org.jgroups.mux.MuxChannel


        this.app = app;
        this.viewBeforeClose = app.getChannel().getView();
        appAddress = app.getChannel().getLocalAddress();
        if(app.isUsingMuxChannel())
        {
           MuxChannel mch = (MuxChannel) app.getChannel();
           muxId = mch.getId();
        }
      }
View Full Code Here


         if(expectedViewSize>1 && isMuxChannelUsed())
         {           
            for (Iterator iter = channels.iterator(); iter.hasNext();)
            {
               FlushTestReceiver receiver = (FlushTestReceiver) iter.next();
               MuxChannel ch = (MuxChannel)receiver.getChannel();
               int servicePairs = 1;
               for (Iterator it = channels.iterator(); it.hasNext();)
               {       
                  FlushTestReceiver receiver2 = (FlushTestReceiverit.next();
                  MuxChannel ch2 = (MuxChannel)receiver2.getChannel();
                  if(ch.getId().equals(ch2.getId()) && !ch.getLocalAddress().equals(ch2.getLocalAddress()))
                  {                    
                     assertEquals("Correct view for service pair",ch.getView(),ch2.getView());
                     assertTrue("Presence in view",ch.getView().getMembers().contains(ch.getLocalAddress()));
                     assertTrue("Presence in view",ch.getView().getMembers().contains(ch2.getLocalAddress()));
                     assertTrue("Presence in view",ch2.getView().getMembers().contains(ch2.getLocalAddress()));
                     assertTrue("Presence in view",ch2.getView().getMembers().contains(ch.getLocalAddress()));
                     servicePairs++;                   
                  }
               }
               assertEquals("Correct service count",expectedViewSize,servicePairs);                           
            }           
View Full Code Here

   
    private class MuxFactoryChannelListener extends ChannelListenerAdapter{

        public void channelClosed(Channel channel) {
            MuxChannel mch = (MuxChannel)channel;
            Multiplexer multiplexer = mch.getMultiplexer();
            boolean all_closed = multiplexer.close();
            if(all_closed) {
                channels.remove(mch.getStackName());
                unregister(domain + ":*,cluster=" + mch.getStackName());
            }
        }           
View Full Code Here


    private class MuxFactoryChannelListener extends ChannelListenerAdapter{

        public void channelClosed(Channel channel) {
            MuxChannel mch = (MuxChannel)channel;
            Multiplexer multiplexer = mch.getMultiplexer();
            boolean all_closed = multiplexer.close();
            if(all_closed) {
                channels.remove(mch.getStackName());
                unregister(domain + ":*,cluster=" + mch.getStackName());
            }
        }           
View Full Code Here

   
    private class MuxFactoryChannelListener extends ChannelListenerAdapter{

        public void channelClosed(Channel channel) {
            MuxChannel mch = (MuxChannel)channel;
            Multiplexer multiplexer = mch.getMultiplexer();
            boolean all_closed = multiplexer.close();
            if(all_closed) {
                channels.remove(mch.getStackName());
                unregister(domain + ":*,cluster=" + mch.getStackName());
            }
        }           
View Full Code Here

   
    private class MuxFactoryChannelListener extends ChannelListenerAdapter{

        public void channelClosed(Channel channel) {
            MuxChannel mch = (MuxChannel)channel;
            Multiplexer multiplexer = mch.getMultiplexer();
            boolean all_closed = multiplexer.close();
            if(all_closed) {
                channels.remove(mch.getStackName());
                unregister(domain + ":*,cluster=" + mch.getStackName());
            }
        }           
View Full Code Here

   
    private class MuxFactoryChannelListener extends ChannelListenerAdapter{

        public void channelClosed(Channel channel) {
            MuxChannel mch = (MuxChannel)channel;
            Multiplexer multiplexer = mch.getMultiplexer();
            boolean all_closed = multiplexer.close();
            if(all_closed) {
                channels.remove(mch.getStackName());
                unregister(domain + ":*,cluster=" + mch.getStackName());
            }
        }           
View Full Code Here

TOP

Related Classes of org.jgroups.mux.MuxChannel

Copyright © 2018 www.massapicom. 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.