@Override protected void closeLocalStrategiesAndCaches() { try { super.closeLocalStrategiesAndCaches(); } finally { if (this.driver instanceof ResettableDriver) { final ResettableDriver<?, ?> resDriver = (ResettableDriver<?, ?>) this.driver; try { resDriver.teardown(); } catch (Throwable t) { log.error("Error while shutting down an iterative operator.", t); } } } }
@Override protected void closeLocalStrategiesAndCaches() { try { super.closeLocalStrategiesAndCaches(); } finally { if (this.driver instanceof ResettableDriver) { final ResettableDriver<?, ?> resDriver = (ResettableDriver<?, ?>) this.driver; try { resDriver.teardown(); } catch (Throwable t) { log.error("Error while shutting down an iterative operator.", t); } } } }
@Override protected void closeLocalStrategiesAndCaches() { try { super.closeLocalStrategiesAndCaches(); } finally { if (this.driver instanceof ResettableDriver) { final ResettableDriver<?, ?> resDriver = (ResettableDriver<?, ?>) this.driver; try { resDriver.teardown(); } catch (Throwable t) { log.error("Error while shutting down an iterative operator.", t); } } } }
@Override protected void closeLocalStrategiesAndCaches() { try { super.closeLocalStrategiesAndCaches(); } finally { if (this.driver instanceof ResettableDriver) { final ResettableDriver<?, ?> resDriver = (ResettableDriver<?, ?>) this.driver; try { resDriver.teardown(); } catch (Throwable t) { log.error("Error while shutting down an iterative operator.", t); } } } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }