Package voldemort.cluster

Examples of voldemort.cluster.Cluster


    @Test
    public void test() {

        RebalanceScheduler mockedScheduler = Mockito.spy(scheduler);
        Cluster zzCurrent = ClusterTestUtils.getZZCluster();
        adminClient = ServerTestUtils.getAdminClient(zzCurrent);

        Map<String, List<Integer>> outerMap = new HashMap<String, List<Integer>>();
        List<Integer> someList = Arrays.asList(0, 1, 2);
        outerMap.put("storeA", someList);
View Full Code Here


                               ports[3 * i + 1],
                               ports[3 * i + 2],
                               partitions));
        }

        return new Cluster("test-cluster", nodes);
    }
View Full Code Here

                               ports[3 * i + 1],
                               ports[3 * i + 2],
                               partitions));
        }

        return new Cluster("test-cluster", nodes);
    }
View Full Code Here

                                node.getPartitionIds());
            }
            newNodeList.add(node);
        }

        return new Cluster(original.getName(), newNodeList);
    }
View Full Code Here

        }

        // Generate zones
        if(numberOfZones > 1) {
            List<Zone> zones = getZones(numberOfZones);
            return new Cluster("cluster", nodes, zones);
        } else {
            return new Cluster("cluster", nodes);
        }
    }
View Full Code Here

                               partitions));
        }

        // Generate zones
        List<Zone> zones = getZones(numberOfZones);
        return new Cluster("cluster", nodes, zones);
    }
View Full Code Here

                offset++;
            }
        }

        List<Zone> zones = getZones(numberOfZones);
        return new Cluster("cluster", nodes, zones);
    }
View Full Code Here

            }
            zoneOffset++;
        }

        List<Zone> zones = getZonesFromZoneIds(zoneIds);
        return new Cluster("cluster", nodes, zones);
    }
View Full Code Here

                                                           String clusterFile,
                                                           String storeFile,
                                                           Properties properties,
                                                           Cluster customCluster)
            throws IOException {
        Cluster cluster = null;
        if(customCluster != null) {
            cluster = customCluster;
        } else {
            cluster = ServerTestUtils.getLocalCluster(numServers, partitionMap);
        }

        int count = 0;
        for(int nodeId: cluster.getNodeIds()) {

            voldemortServers[count] = ServerTestUtils.startVoldemortServer(socketStoreFactory,
                                                                           ServerTestUtils.createServerConfig(useNio,
                                                                                                              nodeId,
                                                                                                              TestUtils.createTempDir()
View Full Code Here

                                                 String clusterFile,
                                                 String storeFile,
                                                 Properties properties,
                                                 Cluster customCluster) throws IOException {
        boolean started = false;
        Cluster cluster = null;

        while(!started) {
            try {
                cluster = internalStartVoldemortCluster(numServers,
                                                        voldemortServers,
View Full Code Here

TOP

Related Classes of voldemort.cluster.Cluster

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.