Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.TopologyResult


      long sleepTime = TestUtil.getProperSleepTime("clusterViewUpdateTest.testUpdateTopology", 40000);
      log.info("Sleeping for " + sleepTime);
      Thread.sleep(sleepTime);
     
      assertEquals(1, clusterDelegate.getDelegates().length);
      TopologyResult topology = clusterDelegate.getTopology();
      assertEquals(1, topology.getDelegates().length);

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


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

   public TopologyResult getTopology() throws JMSException
   {
      return new TopologyResult(uniqueName, delegates, failoverMap);
   }
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

            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

      // Kill the same node as the CF is connected to
      ServerManagement.kill(1);
      Thread.sleep(5000);
      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

            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

      // 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

   // Inner classes --------------------------------------------------------------------------------

   public void read(DataInputStream is) throws Exception
   {
      result = new TopologyResult();
      result.read(is);
   }
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.