public Class<C> getConsumedType() { return delegate.getConsumedType(); }
public Class<P> getProducedType() { return delegate.getProducedType(); }
@Override ShellResponse doInvoke(final ShellProcessContext context) throws InterruptedException { CRaSHProcessContext invocationContext = new CRaSHProcessContext(CRaSHSession.this, context); try { pipeLine.open(invocationContext); pipeLine.flush(); return ShellResponse.ok(); } catch (ScriptException e) { return build(e); } catch (Throwable t) { return build(t); } finally { Safe.close(pipeLine); Safe.close(invocationContext); } }
public void provide(C element) throws ScriptException, IOException { delegate.provide(element); }
public void flush() throws ScriptException, IOException { delegate.flush(); if (next != null && next instanceof PipeCommand) { ((PipeCommand)next).flush(); } }
public void open(CommandContext<P> consumer) { if (next != null && next instanceof PipeCommandProxy) { ((PipeCommandProxy)next).fire(); } delegate.open(consumer); }
public void close() throws ScriptException, IOException { delegate.close(); if (next != null && next instanceof PipeCommand) { ((PipeCommand)next).close(); } } }
final Class produced = invoker.getProducedType(); final Class<?> consumed = next.getConsumedType(); boolean piped = index > 0;