/** * Returns a collection of configured inputs. * * @return A collection of inputs. */ public InputCollection getInputs() { return getInputs(null); }
@Override public void setup(OperatorContext context) { super.setup(context); tcpInput = (TcpInput)store.getService().getInputs().get(tcpPort); try { socket = tcpInput.attach(); stream = new DataOutputStream(socket.getOutputStream()); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public void setup(OperatorContext context) { super.setup(context); tcpInput = (TcpInput) store.getService().getInputs().get(tcpPort); try { socket = tcpInput.attach(); stream = new DataOutputStream(socket.getOutputStream()); } catch (IOException e) { throw new RuntimeException(e); } }