@Override public void close(Throwable error) throws Exception { wrapped.close(error); } }
/** * Complete local execution. If local execution was started, it should be * called after execution has completed. */ public void completeExecution(Throwable error) { assert executionFuture == null || executionFuture.isDone() : "If execution was begun, then completeExecution() should not be called before execution is done."; for (Tasklet tasklet : tasklets) { try { tasklet.close(); } catch (Throwable e) { logger.severe(jobNameAndExecutionId() + " encountered an exception in Processor.close(), ignoring it", e); } } for (ProcessorSupplier s : procSuppliers) { try { s.close(error); } catch (Throwable e) { logger.severe(jobNameAndExecutionId() + " encountered an exception in ProcessorSupplier.complete(), ignoring it", e); } } MetricsRegistry metricsRegistry = ((NodeEngineImpl) nodeEngine).getMetricsRegistry(); processors.forEach(metricsRegistry::deregister); tasklets.forEach(metricsRegistry::deregister); }
runTest(true, Integer.MAX_VALUE, 1); supplier.close(null); } catch (Exception e) { throw sneakyThrow(e);