/** * Cancel the query specified by the UUID. * * @param queryId * @throws Exception */ public void cancel(UUID queryId) throws Exception { this.our_mgr.cancel(queryId); }
/** * Cancel a query running remotely on the server. * * @param queryID * the UUID of the query to cancel */ public void cancel(final UUID queryId) throws Exception { mgr.cancel(queryId); }
@Override public void close() throws QueryEvaluationException { try { super.close(); } finally { if (notDone.compareAndSet(true, false)) { try { cancel(queryId); } catch (Exception ex) { log.warn(ex); } } if (listener != null) { listener.closed(queryId); } } };
@Override public void handleClose() throws QueryEvaluationException { try { super.handleClose(); } finally { if (notDone.compareAndSet(true, false)) { try { cancel(queryId); } catch (Exception ex) { log.warn(ex); } } /* * Notify the listener. */ if (listener != null) { listener.closed(queryId); } } };
cancel(queryId); } catch (Exception ex) { log.warn(ex);
cancel(queryId); } catch (Exception ex) { log.warn(ex);
cancel(queryId); } catch (Exception ex) { log.warn(ex);
cancel(queryId); } catch (Exception ex) { log.warn(ex);