Examples of ClusterTopologyListener


Examples of org.hornetq.api.core.client.ClusterTopologyListener

         final List<String> nodes = new ArrayList<String>();
         final CountDownLatch upLatch = new CountDownLatch(5);
         final CountDownLatch downLatch = new CountDownLatch(4);

         locator.addClusterTopologyListener(new ClusterTopologyListener()
         {
            public void nodeUP(final long uniqueEventID,
                               String nodeID,
                               Pair<TransportConfiguration, TransportConfiguration> connectorPair,
                               boolean last)
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

         final List<String> nodes = new ArrayList<String>();
         final CountDownLatch upLatch = new CountDownLatch(5);
         final CountDownLatch downLatch = new CountDownLatch(4);

         locator.addClusterTopologyListener(new ClusterTopologyListener()
         {
            public void nodeUP(final long uniqueEventID,
                               String nodeID,
                               Pair<TransportConfiguration, TransportConfiguration> connectorPair,
                               boolean last)
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

         waitForClusterConnections(4, 4);

         final List<String> nodes = new ArrayList<String>();
         final CountDownLatch upLatch = new CountDownLatch(5);

         locator.addClusterTopologyListener(new ClusterTopologyListener()
         {
            public void nodeUP(final long uniqueEventID,
                               String nodeID,
                               Pair<TransportConfiguration, TransportConfiguration> connectorPair,
                               boolean last)
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

         final List<String> nodes = new ArrayList<String>();
         final CountDownLatch upLatch = new CountDownLatch(5);
         final CountDownLatch downLatch = new CountDownLatch(4);

         locator.addClusterTopologyListener(new ClusterTopologyListener()
         {
            public void nodeUP(final long uniqueEventID,
                               String nodeID,
                               Pair<TransportConfiguration, TransportConfiguration> connectorPair,
                               boolean last)
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

            if (packet.getType() == PacketImpl.SUBSCRIBE_TOPOLOGY_V2)
            {
               channel0.getConnection().setClientVersion(((SubscribeClusterTopologyUpdatesMessageV2)msg).getClientVersion());
            }

            final ClusterTopologyListener listener = new ClusterTopologyListener()
            {
               @Override
               public void nodeUP(final TopologyMember topologyMember, final boolean last)
               {
                  try
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

            }
            else if (packet.getType() == PacketImpl.SUBSCRIBE_TOPOLOGY)
            {
               SubscribeClusterTopologyUpdatesMessage msg = (SubscribeClusterTopologyUpdatesMessage)packet;
              
               final ClusterTopologyListener listener = new ClusterTopologyListener()
               {
                  public void nodeUP(String nodeID, Pair<TransportConfiguration, TransportConfiguration> connectorPair, boolean last, int distance)
                  {
                     channel0.send(new ClusterTopologyChangeMessage(nodeID, connectorPair, last, distance + 1));
                  }
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

            if (packet.getType() == PacketImpl.SUBSCRIBE_TOPOLOGY_V2)
            {
               channel0.getConnection().setClientVersion(((SubscribeClusterTopologyUpdatesMessageV2)msg).getClientVersion());
            }

            final ClusterTopologyListener listener = new ClusterTopologyListener()
            {
               @Override
               public void nodeUP(final TopologyMember topologyMember, final boolean last)
               {
                  try
View Full Code Here

Examples of org.hornetq.api.core.client.ClusterTopologyListener

               if (packet.getType() == PacketImpl.SUBSCRIBE_TOPOLOGY_V2)
               {
                  channel0.getConnection().setClientVersion(((SubscribeClusterTopologyUpdatesMessageV2)msg).getClientVersion());
               }

               final ClusterTopologyListener listener = new ClusterTopologyListener()
               {
                  public void nodeUP(final long uniqueEventID,
                                     final String nodeID,
                                     final Pair<TransportConfiguration, TransportConfiguration> connectorPair,
                                     final boolean last)
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.