Added fail-over test hook.
1.1 --- a/cmbf/gridgain_ex/src/org/dacframe/lab/cmbf/gridgain/CMBF.java Tue Mar 16 09:37:01 2010 +0100
1.2 +++ b/cmbf/gridgain_ex/src/org/dacframe/lab/cmbf/gridgain/CMBF.java Tue Mar 16 09:45:41 2010 +0100
1.3 @@ -9,6 +9,7 @@
1.4 import java.util.concurrent.ExecutionException;
1.5 import java.util.concurrent.ExecutorService;
1.6 import java.util.concurrent.Future;
1.7 +import java.io.IOException;
1.8
1.9 public class CMBF {
1.10 public static void main(String[] args) throws ExecutionException, InterruptedException, GridException {
1.11 @@ -31,6 +32,11 @@
1.12 FastBigInt128 results = new FastBigInt128(0);
1.13 Worker cmbfWorker = new Worker();
1.14
1.15 + try {
1.16 + Runtime.getRuntime().exec("./startGeneratingTasks");
1.17 + } catch (IOException e) {
1.18 + System.out.println("Exec failed: " + e.getMessage());
1.19 + }
1.20 long startTime = System.currentTimeMillis();
1.21 System.out.println(" CMBF: Generating tasks (n=" + n + ", level=" + level + ")");
1.22