@Override @Before public void setUp() throws IOException { cluster = ServerTestUtils.getLocalCluster(2, new int[][] {{0, 1, 2, 3}, {4, 5, 6, 7}}); servers = new VoldemortServer[2]; servers[0] = ServerTestUtils.startVoldemortServer( ServerTestUtils.createServerConfig( useNio, 0, TestUtils.createTempDir().getAbsolutePath(), null, storesXmlfile, new Properties()), cluster); servers[1] = ServerTestUtils.startVoldemortServer( ServerTestUtils.createServerConfig( useNio, 1, TestUtils.createTempDir().getAbsolutePath(), null, storesXmlfile, new Properties()), cluster); adminClient = ServerTestUtils.getAdminClient(cluster); }
@Override @Before public void setUp() throws IOException { cluster = ServerTestUtils.getLocalCluster(2, new int[][] {{0, 1, 2, 3}, {4, 5, 6, 7}}); List<StoreDefinition> storeDefs = ServerTestUtils.getStoreDefs(1); failingStorageEngine = new RandomlyFailingDelegatingStore<ByteArray, byte[], byte[]>( new InMemoryStorageEngine<ByteArray, byte[], byte[]>(storeDefs.get(0).getName())); adminServer = getAdminServer(cluster.getNodeById(0), cluster, storeDefs, failingStorageEngine); adminClient = ServerTestUtils.getAdminClient(cluster); adminServer.start(); }
public AdminTest(String bootstrapUrl, String storeName) { this.storeName = storeName; this.adminClient = ServerTestUtils.getAdminClient(bootstrapUrl); }