cmdList.add("-Dcommit.tx=false");
cmdList.add("org.apache.olio.workload.loader.LoadController");
cmdList.add(driver);
cmdList.add(connectURL);
cmdList.add(String.valueOf(scale));
Command c = new Command(cmdList);
c.setSynchronous(false);
dbHandle = java(dbHost, c);
}
if (reloadMedia) {
logger.info("Reloading images/media for " + scale + " users!");
String mediaHost = params.getParameter(
"dataStorage/fa:hostConfig/fa:host");
String mediaDir = params.getParameter("dataStorage/mediaDir");
Command c = new Command("org.apache.olio.workload.fsloader.FileLoader",
getBenchmarkDir() + "resources", mediaDir,
String.valueOf(scale));
c.setSynchronous(false);
mediaHandle = java(mediaHost, c);
}
if (dbHandle != null)
dbHandle.waitFor();