/** * Inform the component that a stream has arrived. * @param con The stream that arrived. */ public void streamArrived(IConnection con) { getComponent().getComponentFeature(IExecutionFeature.class) .scheduleStep(createHandleStreamStep(con)) .addResultListener(new IResultListener<Void>() { public void resultAvailable(Void result) { // NOP } public void exceptionOccurred(Exception exception) { // Todo: fail fast components? StringWriter sw = new StringWriter(); exception.printStackTrace(new PrintWriter(sw)); getComponent().getLogger().severe("Exception during stream processing\n"+sw); } }); }