{
VoltServerConfig config = null;
MultiConfigSuiteBuilder builder =
new MultiConfigSuiteBuilder(TestReplicationSuite.class);
VoltProjectBuilder project = new VoltProjectBuilder("replication");
project.addSchema(SelectEmptyTable.class.getResource("replication-ddl.sql"));
project.addTablePartitionInfo("P1", "ID");
project.addStmtProcedure("InsertSinglePart",
"INSERT INTO P1 VALUES (?, ?, ?, ?);",
"P1.ID: 0");
project.addStmtProcedure("UpdateSinglePart",
"UPDATE P1 SET P1.NUM = ? WHERE P1.ID = ?",
"P1.ID: 0");
project.addStmtProcedure("SelectSinglePart",
"SELECT * FROM P1 WHERE P1.ID = ?",
"P1.ID: 0");
project.addStmtProcedure("InsertMultiPart",
"INSERT INTO P1 VALUES (?, ?, ?, ?);");
project.addStmtProcedure("SelectMultiPart", "SELECT * FROM P1");
project.addStmtProcedure("UpdateMultiPart",
"UPDATE P1 SET P1.NUM = ?");
project.addStmtProcedure("InsertMultiPartRepl",
"INSERT INTO R1 VALUES (?, ?, ?, ?);");
project.addStmtProcedure("SelectMultiPartRepl", "SELECT * FROM R1");
project.addStmtProcedure("UpdateMultiPartRepl",
"UPDATE R1 SET R1.NUM = ?");
project.addProcedures(PROCEDURES);
/////////////////////////////////////////////////////////////
// CLUSTER, two hosts, each with two sites, replication of 1
/////////////////////////////////////////////////////////////
config = new LocalCluster(PREFIX+"-1-cluster.jar", 2, 2, 1, BackendTarget.NATIVE_EE_JNI);