Package org.infinispan.distribution.group

Examples of org.infinispan.distribution.group.GroupManagerImpl


         wch.setNumVirtualNodes(c.getNumVirtualNodes());
      }
      if (ch instanceof AbstractConsistentHash) {
          AbstractConsistentHash ach = (AbstractConsistentHash) ch;
          if (c.isGroupsEnabled())
              ach.setGroupManager(new GroupManagerImpl(c.getGroupers()));
      }
      return ch;
   }
View Full Code Here


         wch.setNumVirtualNodes(c.getNumVirtualNodes());
      }
      if (ch instanceof AbstractConsistentHash) {
          AbstractConsistentHash ach = (AbstractConsistentHash) ch;
          if (c.isGroupsEnabled())
              ach.setGroupManager(new GroupManagerImpl(c.getGroupers()));
      }
      return ch;
   }
View Full Code Here

   private static ConsistentHash constructConsistentHashInstance(
            Configuration c, boolean withTopology) {
      HashConfiguration hashCfg = c.clustering().hash();
      return constructConsistentHashInstance(hashCfg.consistentHash(),
            hashCfg.hash(), hashCfg.numVirtualNodes(),
            new GroupManagerImpl(hashCfg.groups().groupers()), withTopology);
   }
View Full Code Here

   }

   private static ConsistentHash constructConsistentHashInstance(Configuration c) {
      Class<? extends ConsistentHash> chClass = Util.loadClass(c.getConsistentHashClass(), c.getClassLoader());
      Hash h = (Hash) Util.getInstance(c.getHashFunctionClass(), c.getClassLoader());
      return constructConsistentHashInstance(chClass, h, c.getNumVirtualNodes(), new GroupManagerImpl(c.getGroupers()));
   }
View Full Code Here

         wch.setNumVirtualNodes(c.getNumVirtualNodes());
      }
      if (ch instanceof AbstractConsistentHash) {
          AbstractConsistentHash ach = (AbstractConsistentHash) ch;
          if (c.isGroupsEnabled())
              ach.setGroupManager(new GroupManagerImpl(c.getGroupers()));
      }
      return ch;
   }
View Full Code Here

   private static ConsistentHash constructConsistentHashInstance(Configuration c) {
      Class<? extends ConsistentHash> chClass = Util.loadClass(c.getConsistentHashClass(), c.getClassLoader());
      Hash h = (Hash) Util.getInstance(c.getHashFunctionClass(), c.getClassLoader());
      HashSeed hs = c.getHashSeed() != null ? c.getHashSeed() :
            (HashSeed) Util.getInstance(c.getHashSeedClass(), c.getClassLoader());
      return constructConsistentHashInstance(chClass, h, hs, c.getNumVirtualNodes(), new GroupManagerImpl(c.getGroupers()));
   }
View Full Code Here

         wch.setNumVirtualNodes(c.getNumVirtualNodes());
      }
      if (ch instanceof AbstractConsistentHash) {
          AbstractConsistentHash ach = (AbstractConsistentHash) ch;
          if (c.isGroupsEnabled())
              ach.setGroupManager(new GroupManagerImpl(c.getGroupers()));
      }
      return ch;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.distribution.group.GroupManagerImpl

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.