Package net.myrrix.online.partition

Examples of net.myrrix.online.partition.PartitionLoader


          new ReloadingReference<List<List<HostAndPort>>>(new Callable<List<List<HostAndPort>>>() {
            @Override
            public List<List<HostAndPort>> call() {
              if (RunnerConfiguration.AUTO_PARTITION_SPEC.equals(allPartitionsSpecString)) {
                int port = Integer.parseInt(portString);
                PartitionLoader loader =
                    ClassUtils.loadInstanceOf("net.myrrix.online.partition.PartitionLoaderImpl",
                                              PartitionLoader.class);
                List<List<HostAndPort>> newPartitions = loader.loadPartitions(port, bucket, instanceID);
                log.debug("Latest partitions: {}", newPartitions);
                return newPartitions;
              }
              return PartitionsUtils.parseAllPartitions(allPartitionsSpecString);
            }
View Full Code Here

TOP

Related Classes of net.myrrix.online.partition.PartitionLoader

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.