/** * Test for abnormal completion of the {@link IRunningQuery}. */ private void checkFuture() { // if (!checkedFuture && runningQuery.isDone()) { try { runningQuery.get(); } catch (InterruptedException e) { /* * Interrupted while waiting on the Future (should not happen * since the Future is already done). */ throw new RuntimeException(e); } catch (Throwable e) { /* * Exception thrown by the runningQuery. */ if (runningQuery.getCause() != null) { // abnormal termination - wrap and rethrow. throw new RuntimeException(e); } // otherwise this is normal termination. } checkedFuture = true; // } }
runningSubquery.get();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningSubquery.get();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningSubquery.get();
/** * Test for abnormal completion of the {@link IRunningQuery}. */ private void checkFuture() { // if (!checkedFuture && runningQuery.isDone()) { try { runningQuery.get(); } catch (InterruptedException e) { /* * Interrupted while waiting on the Future (should not happen * since the Future is already done). */ throw new RuntimeException(e); } catch (Throwable e) { /* * Exception thrown by the runningQuery. */ if (runningQuery.getCause() != null) { // abnormal termination - wrap and rethrow. throw new RuntimeException(e); } // otherwise this is normal termination. } checkedFuture = true; // } }
runningSubquery.get();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningSubquery.get();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningSubquery.get();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();
runningQuery.get(); final Map<Integer, BOpStats> statsMap = runningQuery.getStats();