Package org.infinispan.distribution.ch

Examples of org.infinispan.distribution.ch.NodeTopologyInfo


   }

   private void updateTopologyInfo(List<Response> responseList) {
      for (Response r : responseList) {
         SuccessfulResponse sr = (SuccessfulResponse) r;
         NodeTopologyInfo nti = (NodeTopologyInfo) sr.getResponseValue();
         if (nti != null) {
            dmi.topologyInfo.addNodeTopologyInfo(nti.getAddress(), nti);
         }
      }
      if (log.isTraceEnabled()) log.trace("Topology after after getting cluster info: " + dmi.topologyInfo);
   }
View Full Code Here


   private void updateTopologyInfo(Collection<Response> responses) {
      for (Response r : responses) {
         if(r instanceof SuccessfulResponse) {
            SuccessfulResponse sr = (SuccessfulResponse) r;
            NodeTopologyInfo nti = (NodeTopologyInfo) sr.getResponseValue();
            if (nti != null) {
               distributionManager.getTopologyInfo().addNodeTopologyInfo(nti.getAddress(), nti);
            }
         }
         else {
            // will ignore unsuccessful response
            if(trace) log.trace("updateTopologyInfo will ignore unsuccessful response (another node may not be ready), got response with success=" + r.isSuccessful() +", is a " + r.getClass().getSimpleName());
View Full Code Here

      listener = new ViewChangeListener();
      notifier.addListener(listener);
      GlobalConfiguration gc = configuration.getGlobalConfiguration();
      if (gc.hasTopologyInfo()) {
         Address address = rpcManager.getTransport().getAddress();
         NodeTopologyInfo nti = new NodeTopologyInfo(gc.getMachineId(), gc.getRackId(), gc.getSiteId(), address);
         topologyInfo.addNodeTopologyInfo(address, nti);
      }
      join();
   }
View Full Code Here

   }

   private void updateTopologyInfo(List<Response> responseList) {
      for (Response r : responseList) {
         SuccessfulResponse sr = (SuccessfulResponse) r;
         NodeTopologyInfo nti = (NodeTopologyInfo) sr.getResponseValue();
         if (nti != null) {
            dmi.topologyInfo.addNodeTopologyInfo(nti.getAddress(), nti);
         }
      }
      if (log.isTraceEnabled()) log.trace("Topology after after getting cluster info: " + dmi.topologyInfo);
   }
View Full Code Here

      listener = new ViewChangeListener();
      notifier.addListener(listener);
      GlobalConfiguration gc = configuration.getGlobalConfiguration();
      if (gc.hasTopologyInfo()) {
         Address address = rpcManager.getTransport().getAddress();
         NodeTopologyInfo nti = new NodeTopologyInfo(gc.getMachineId(),gc.getRackId(), gc.getSiteId(), address);
         topologyInfo.addNodeTopologyInfo(address, nti);
      }
      join();
   }
View Full Code Here

TOP

Related Classes of org.infinispan.distribution.ch.NodeTopologyInfo

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.