@Teardown public void tearDown() { invoker.invokeTeardown(); invoker = null; } }
@Teardown public void tearDown() { invoker.invokeTeardown(); invoker = null; } }
@Teardown public void tearDown() throws Exception { invoker.invokeTeardown(); }
@Override public void close() throws Exception { doFnInvoker.invokeTeardown(); }
@Override public void teardown() { doFnInvoker.invokeTeardown(); }
@Override public void close() throws Exception { doFnInvoker.invokeTeardown(); }
@Override public void close() throws Exception { doFnInvoker.invokeTeardown(); }
@Override public void close() throws Exception { doFnInvoker.invokeTeardown(); } }
@Teardown public void teardown() { invoker.invokeTeardown(); }
@Override public void close() throws Exception { try { doFnInvoker.invokeTeardown(); } finally { FlinkClassloading.deleteStaticCaches(); } }
@Override public void close() throws Exception { try { doFnInvoker.invokeTeardown(); } finally { FlinkClassloading.deleteStaticCaches(); } } }
@Override public void teardown() { doFnInvoker.invokeTeardown(); super.teardown(); }
@Teardown public void teardown() { DoFnInvokers.invokerFor(underlyingDoFn).invokeTeardown(); }
/** @deprecated Use {@link TestPipeline} with the {@code DirectRunner}. */ @Deprecated @Override public void close() throws Exception { if (state == State.BUNDLE_STARTED) { finishBundle(); } if (state == State.BUNDLE_FINISHED) { fnInvoker.invokeTeardown(); fn = null; fnInvoker = null; } state = State.TORN_DOWN; }
@Override public void dispose() throws Exception { try { super.dispose(); checkFinishBundleTimer.cancel(true); } finally { if (bundleStarted) { invokeFinishBundle(); } doFnInvoker.invokeTeardown(); } }
@Override public final void close() { beforeClose(); forceFinishBundle(); doFnInvoker.invokeTeardown(); }
@Override public void onRemoval(RemovalNotification<Thread, DoFn<?, ?>> notification) { try { DoFnInvokers.invokerFor(notification.getValue()).invokeTeardown(); } catch (Exception e) { thrownOnTeardown.put(notification.getKey(), e); } } }
@Override public void dispose() throws Exception { try { super.dispose(); checkFinishBundleTimer.cancel(true); } finally { FlinkClassloading.deleteStaticCaches(); if (bundleStarted) { invokeFinishBundle(); } doFnInvoker.invokeTeardown(); } }
@Override public void close() throws Exception { super.close(); // sanity check: these should have been flushed out by +Inf watermarks if (!sideInputs.isEmpty() && nonKeyedStateInternals != null) { BagState<WindowedValue<InputT>> pushedBack = nonKeyedStateInternals.state(StateNamespaces.global(), pushedBackTag); Iterable<WindowedValue<InputT>> pushedBackContents = pushedBack.read(); if (pushedBackContents != null) { if (!Iterables.isEmpty(pushedBackContents)) { String pushedBackString = Joiner.on(",").join(pushedBackContents); throw new RuntimeException( "Leftover pushed-back data: " + pushedBackString + ". This indicates a bug."); } } } checkFinishBundleTimer.cancel(true); doFnInvoker.invokeTeardown(); }
/** @deprecated Use {@link TestPipeline} with the {@code DirectRunner}. */ @Deprecated public void finishBundle() throws Exception { checkState( state == State.BUNDLE_STARTED, "Must be inside bundle to call finishBundle, but was: %s", state); try { fnInvoker.invokeFinishBundle(new TestFinishBundleContext()); } catch (UserCodeException e) { unwrapUserCodeException(e); } if (cloningBehavior == CloningBehavior.CLONE_PER_BUNDLE) { fnInvoker.invokeTeardown(); fn = null; fnInvoker = null; state = State.UNINITIALIZED; } else { state = State.BUNDLE_FINISHED; } }