use of org.voltdb.BackendTarget in project voltdb by VoltDB.
the class TPCCDebugTest method setUp.
@Override
public void setUp() throws IOException {
Class<?>[] procedures = ALL_PROCEDURES;
int siteCount = 1;
BackendTarget target = BackendTarget.NATIVE_EE_JNI;
String testDir = BuildDirectoryUtils.getBuildDirectoryPath();
String catalogJar = testDir + File.separator + JAR;
TPCCProjectBuilder pb = new TPCCProjectBuilder();
pb.addDefaultSchema();
pb.addDefaultPartitioning();
pb.addProcedures(procedures);
pb.addSupplementalClasses(SUPPLEMENTALS);
pb.compile(catalogJar, siteCount, 0);
// start VoltDB server using hzsqlsb backend
server = new ServerThread(catalogJar, pb.getPathToDeployment(), target);
server.start();
server.waitForInitialization();
ClientConfig clientConfig = new ClientConfig("program", "none");
client = ClientFactory.createClient(clientConfig);
// connect
client.createConnection("localhost");
}
Aggregations