@Override public ExecResponse doCall() { try { return future().get(timeouts.scriptComplete, TimeUnit.MILLISECONDS); } catch (Throwable e) { eventBus.post(new StatementOnNodeFailure(init, node, e)); throw Throwables.propagate(e); } }
@Override public ExecResponse doCall() { try { return future().get(timeouts.scriptComplete, TimeUnit.MILLISECONDS); } catch (Throwable e) { eventBus.post(new StatementOnNodeFailure(init, node, e)); throw Throwables.propagate(e); } }
@Override public ExecResponse doCall() { try { return future().get(timeouts.scriptComplete, TimeUnit.MILLISECONDS); } catch (Throwable e) { eventBus.post(new StatementOnNodeFailure(init, node, e)); throw Throwables.propagate(e); } }
@Override public ExecResponse doCall() { try { return future().get(timeouts.scriptComplete, TimeUnit.MILLISECONDS); } catch (Throwable e) { eventBus.post(new StatementOnNodeFailure(init, node, e)); throw Throwables.propagate(e); } }
@Override public BlockUntilInitScriptStatusIsZeroThenReturnOutput submit(NodeMetadata node, Statement script, RunScriptOptions options) { checkNotNull(node, "node"); checkNotNull(script, "script"); checkNotNull(options, "options"); options.shouldWrapInInitScript(); return factory.backgroundAndBlockOnComplete(node, script, options).init().future(); } }
@Override public BlockUntilInitScriptStatusIsZeroThenReturnOutput submit(NodeMetadata node, Statement script, RunScriptOptions options) { checkNotNull(node, "node"); checkNotNull(script, "script"); checkNotNull(options, "options"); options.shouldWrapInInitScript(); return factory.backgroundAndBlockOnComplete(node, script, options).init().future(); } }
@Override public BlockUntilInitScriptStatusIsZeroThenReturnOutput submit(NodeMetadata node, Statement script, RunScriptOptions options) { checkNotNull(node, "node"); checkNotNull(script, "script"); checkNotNull(options, "options"); options.shouldWrapInInitScript(); return factory.backgroundAndBlockOnComplete(node, script, options).init().future(); } }
@Override public BlockUntilInitScriptStatusIsZeroThenReturnOutput submit(NodeMetadata node, Statement script, RunScriptOptions options) { checkNotNull(node, "node"); checkNotNull(script, "script"); checkNotNull(options, "options"); options.shouldWrapInInitScript(); return factory.backgroundAndBlockOnComplete(node, script, options).init().future(); } }