}
long start = System.currentTimeMillis();
File basedir = new File(deploymentOptions.getClusterDir());
for (Integer nodeId : nodeIds) {
File nodeDir = new File(basedir, "node" + nodeId);
ProcessExecutionResults results = startNode(nodeDir);
if (results.getError() != null) {
log.warn("An unexpected error occurred while starting the node at " + nodeDir, results.getError());
} else {
nodeProcessMap.put(nodeId, results.getProcess());
}
}
long end = System.currentTimeMillis();
log.info("Started embedded cluster in " + (end - start) + " ms");
}