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

      long sleepTime = TestUtil.getProperSleepTime("clusterViewUpdateTest.testUpdateTopology", 20000);
      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

/*  99 */         this.remoting.start();
/* 100 */         this.currentDelegate = this.delegates[server];
/* 101 */         if (trace) log.trace("Adding callback");
/* 102 */         addCallback(this.delegates[server]);
/* 103 */         if (trace) log.trace("Getting topology");
/* 104 */         TopologyResult topology = getTopology();
/* 105 */         if (trace) log.trace(new StringBuilder().append("delegates.size = ").append(topology.getDelegates().length).toString());
/* 106 */         addShutdownHook();
/*     */       }
/*     */       catch (Throwable e)
/*     */       {
/* 112 */         log.debug(new StringBuilder().append("Server communication to server[").append(server).append("] (").append(this.delegates[server].getServerLocatorURI()).append(") during establishCallback was broken, ").append("trying the next one").toString(), e);
View Full Code Here

/*     */     {
/* 316 */       ConnectionFactoryGetTopologyRequest request = new ConnectionFactoryGetTopologyRequest(this.currentDelegate.getID());
/*     */
/* 319 */       ConnectionFactoryGetTopologyResponse response = (ConnectionFactoryGetTopologyResponse)this.remoting.getRemotingClient().invoke(request, null);
/*     */
/* 322 */       TopologyResult topology = (TopologyResult)response.getResponse();
/*     */
/* 324 */       updateFailoverInfo(topology.getDelegates(), topology.getFailoverMap());
/*     */
/* 326 */       return topology;
/*     */     }
/*     */     catch (Throwable e) {
/*     */     }
View Full Code Here

/* 296 */     this.serverPeer.getConnectionManager().removeConnectionFactoryCallback(this.uniqueName, VMID, callbackHandler);
/*     */   }
/*     */
/*     */   public TopologyResult getTopology() throws JMSException
/*     */   {
/* 301 */     return new TopologyResult(this.uniqueName, this.delegates, this.failoverMap);
/*     */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public void read(DataInputStream is)
/*    */     throws Exception
/*    */   {
/* 69 */     this.result = new TopologyResult();
/* 70 */     this.result.read(is);
/*    */   }
View Full Code Here

/*    */
/*    */   public ConnectionFactoryUpdate(String uniqueName, ClientConnectionFactoryDelegate[] delegates, Map failoverMap)
/*    */   {
/* 58 */     super(3);
/*    */
/* 60 */     this.topology = new TopologyResult(uniqueName, delegates, failoverMap);
/*    */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public void read(DataInputStream is)
/*    */     throws Exception
/*    */   {
/* 89 */     this.topology = new TopologyResult();
/* 90 */     this.topology.read(is);
/*    */   }
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

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.