Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.TopologyResult


            new ConnectionFactoryGetTopologyRequest(currentDelegate.getID());

         ConnectionFactoryGetTopologyResponse response = (ConnectionFactoryGetTopologyResponse)remoting.getRemotingClient().invoke(request, null);


         TopologyResult topology = (TopologyResult)response.getResponse();

         updateFailoverInfo(topology.getDelegates(), topology.getFailoverMap());

         return topology;
      }
      catch (Throwable e)
      {
View Full Code Here


      serverPeer.getConnectionManager().unregisterConnectionFactoryCallback(VMID, remotingSessionID);
   }

   public TopologyResult getTopology() throws JMSException
   {
      return new TopologyResult(uniqueName, delegates, failoverMap);
   }
View Full Code Here

   public ConnectionFactoryUpdate(String uniqueName, ClientConnectionFactoryDelegate[] delegates,
                                  Map failoverMap)
   {
      super(PacketSupport.CONNECTIONFACTORY_UPDATE);

      topology = new TopologyResult(uniqueName, delegates, failoverMap);
   }
View Full Code Here

   // Streamable implementation
   // ---------------------------------------------------------------    

   public void read(DataInputStream is) throws Exception
   {
      topology = new TopologyResult();
      topology.read(is);
   }
View Full Code Here

      serverPeer.getConnectionManager().unregisterConnectionFactoryCallback(VMID, remotingSessionID);
   }

   public TopologyResult getTopology() throws JMSException
   {
      return new TopologyResult(uniqueName, delegates, failoverMap);
   }
View Full Code Here

      serverPeer.getConnectionManager().removeConnectionFactoryCallback(this.uniqueName, VMID, callbackHandler);
   }

   public TopologyResult getTopology() throws JMSException
   {
      return new TopologyResult(uniqueName, delegates, failoverMap);
   }
View Full Code Here

      serverPeer.getConnectionManager().unregisterConnectionFactoryCallback(VMID, remotingSessionID);
   }

   public TopologyResult getTopology() throws JMSException
   {
      return new TopologyResult(uniqueName, delegates, failoverMap);
   }
View Full Code Here

      // the sleep time has to be longer than the sum of validatorPingPeriod and validatorPingTimeout.
      // see remoting-bisocket-service.xml
      Thread.sleep(20000);
     
      assertEquals(1, clusterDelegate.getDelegates().length);
      TopologyResult topology = clusterDelegate.getTopology();
      assertEquals(1, topology.getDelegates().length);

      clusterDelegate.closeCallback(false);
   }
View Full Code Here

      // the sleep time has to be longer than the sum of validatorPingPeriod and validatorPingTimeout.
      // see remoting-bisocket-service.xml
      Thread.sleep(20000);
     
      assertEquals(1, clusterDelegate.getDelegates().length);
      TopologyResult topology = clusterDelegate.getTopology();
      assertEquals(1, topology.getDelegates().length);

      clusterDelegate.closeCallback();
   }
View Full Code Here

            remoting.start();
            currentDelegate = delegates[server];
            if (trace) log.trace("Adding callback");
            addCallback(delegates[server]);
            if (trace) log.trace("Getting topology");
            TopologyResult topology = getTopology();
            if (trace) log.trace("delegates.size = " + topology.getDelegates().length);
            addShutdownHook();

            break;
         }
         catch (Throwable e)
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.TopologyResult

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.