Examples of PartitionHandlingManager


Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

      installNewView(advancedCache(a0).getRpcManager().getTransport().getMembers(), missing, manager(a0), manager(a1));

      eventually(new Condition() {
         @Override
         public boolean isSatisfied() throws Exception {
            PartitionHandlingManager phm0 = TestingUtil.extractComponent(cache(a0), PartitionHandlingManager.class);
            return phm0.getState() == PartitionHandlingManager.PartitionState.UNAVAILABLE;
         }
      });
      ss.exit("main:2nd_node_left");

      eventually(new Condition() {
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

         } else if (componentType.equals(XSiteStateProvider.class)) {
            return (T) new XSiteStateProviderImpl();
         } else if (componentType.equals(PartitionHandlingManager.class)) {
            if (configuration.clustering().partitionHandling().enabled()) {
               if (configuration.clustering().cacheMode().isDistributed()) {
                  return (T) new PartitionHandlingManager();
               }
            }
            return null;
         }
      }
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

      installNewView(advancedCache(a0).getRpcManager().getTransport().getMembers(), missing, manager(a0), manager(a1));

      eventually(new Condition() {
         @Override
         public boolean isSatisfied() throws Exception {
            PartitionHandlingManager phm0 = TestingUtil.extractComponent(cache(a0), PartitionHandlingManager.class);
            return phm0.getAvailabilityMode() == expectedAvailabilityMode;
         }
      });
      ss.exit("main:2nd_node_left");

      eventually(new Condition() {
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

         } else if (componentType.equals(XSiteStateProvider.class)) {
            return (T) new XSiteStateProviderImpl();
         } else if (componentType.equals(PartitionHandlingManager.class)) {
            if (configuration.clustering().partitionHandling().enabled()) {
               if (configuration.clustering().cacheMode().isDistributed()) {
                  return (T) new PartitionHandlingManager();
               }
            }
            return null;
         }
      }
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

      installNewView(advancedCache(a0).getRpcManager().getTransport().getMembers(), missing, manager(a0), manager(a1));

      eventually(new Condition() {
         @Override
         public boolean isSatisfied() throws Exception {
            PartitionHandlingManager phm0 = TestingUtil.extractComponent(cache(a0), PartitionHandlingManager.class);
            return phm0.getAvailabilityMode() == expectedAvailabilityMode;
         }
      });
      ss.exit("main:2nd_node_left");

      eventually(new Condition() {
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

   public void updatePartitionHandlingManagerMembers(String cacheName, CacheTopology cacheTopology) {
      ComponentRegistry namedComponentRegistry = gcr.getNamedComponentRegistry(cacheName);
      if (namedComponentRegistry == null) //might be invoked during shutdown
         return;
      PartitionHandlingManager phm = namedComponentRegistry.getComponent(PartitionHandlingManager.class);
      if (phm != null) {
         phm.setLastStableCluster(cacheTopology.getMembers());
         if (cacheTopology.isMissingData()) {
            phm.setState(PartitionHandlingManager.PartitionState.UNAVAILABLE);
         } else {
            phm.setState(PartitionHandlingManager.PartitionState.AVAILABLE);
         }
      }
   }
View Full Code Here

Examples of org.infinispan.partionhandling.impl.PartitionHandlingManager

         } else if (componentType.equals(XSiteStateProvider.class)) {
            return (T) new XSiteStateProviderImpl();
         } else if (componentType.equals(PartitionHandlingManager.class)) {
            if (configuration.clustering().partitionHandling().enabled()) {
               if (configuration.clustering().cacheMode().isDistributed()) {
                  return (T) new PartitionHandlingManager();
               }
            }
            return null;
         }
      }
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.