@Override public void reportError(Throwable error) { _collector.reportError(error); }
public void reportError(Throwable error) { out.reportError(error); }
public void reportError(Throwable error) { _delegate.reportError(error); }
public void reportError(Throwable t) { out.reportError(t); }
public void reportError(Throwable error) { _delegate.reportError(error); }
private void handleError(String msg) { _collector.reportError(new Exception("Shell Process Exception: " + msg)); }
private void failBatch(TrackedBatch tracked, FailedException e) { if (e != null && e instanceof ReportedFailedException) { _collector.reportError(e); } tracked.failed = true; if (tracked.delayedAck != null) { _collector.fail(tracked.delayedAck); tracked.delayedAck = null; } }
private void die(Throwable exception) { String processInfo = _process.getProcessInfoString() + _process.getProcessTerminationInfoString(); _exception = new RuntimeException(processInfo, exception); String message = String.format("Halting process: ShellBolt died. Command: %s, ProcessInfo %s", Arrays.toString(_command), processInfo); LOG.error(message, exception); _collector.reportError(exception); if (_running || (exception instanceof Error)) { // don't exit if not running, unless it is an Error System.exit(11); } }
private void handleLog(ShellMsg shellMsg) { String msg = shellMsg.getMsg(); msg = "ShellLog " + _process.getProcessInfoString() + " " + msg; ShellMsg.ShellLogLevel logLevel = shellMsg.getLogLevel(); switch (logLevel) { case TRACE: LOG.trace(msg); break; case DEBUG: LOG.debug(msg); break; case INFO: LOG.info(msg); break; case WARN: LOG.warn(msg); break; case ERROR: LOG.error(msg); _collector.reportError(new ReportedFailedException(msg)); break; default: LOG.info(msg); break; } }
public void handleRegular(Tuple tuple) { basicCollector.setContext(tuple); try { delegate.execute(tuple, basicCollector); collector.ack(tuple); } catch (FailedException e) { if (e instanceof ReportedFailedException) { collector.reportError(e); } collector.fail(tuple); } }
public void handlePrepareCommit(Tuple tuple) { basicCollector.setContext(tuple); try { BatchId id = (BatchId) tuple.getValue(0); ((IPrepareCommit) delegate).prepareCommit(id, basicCollector); collector.ack(tuple); } catch (FailedException e) { if (e instanceof ReportedFailedException) { collector.reportError(e); } collector.fail(tuple); } }
public void reportError(Throwable t) { out.reportError(t); } }
private void failBatch(TrackedBatch tracked, FailedException e) { if(e!=null && e instanceof ReportedFailedException) { _collector.reportError(e); } tracked.failed = true; if(tracked.delayedAck!=null) { _collector.fail(tracked.delayedAck); tracked.delayedAck = null; } }
private void failBatch(TrackedBatch tracked, FailedException e) { if(e!=null && e instanceof ReportedFailedException) { _collector.reportError(e); } tracked.failed = true; if(tracked.delayedAck!=null) { _collector.fail(tracked.delayedAck); tracked.delayedAck = null; } }
private void die(Throwable exception) { String processInfo = _process.getProcessInfoString() + _process.getProcessTerminationInfoString(); _exception = new RuntimeException(processInfo, exception); String message = String.format("Halting process: ShellBolt died. Command: %s, ProcessInfo %s", Arrays.toString(_command), processInfo); LOG.error(message, exception); _collector.reportError(exception); if (_running || (exception instanceof Error)) { // don't exit if not running, unless it is an Error System.exit(11); } }
@Override public void onCompletion(RecordMetadata ignored, Exception e) { synchronized (collector) { if (e != null) { collector.reportError(e); collector.fail(input); } else { collector.ack(input); } } } };
@Override public void onCompletion(RecordMetadata ignored, Exception e) { synchronized (collector) { if (e != null) { collector.reportError(e); collector.fail(input); } else { collector.ack(input); } } } };
@Override public void execute(Tuple input) { try { this.function.transform(StreamConvertHelper.tupleToEvent(input).f1()); this.collector.ack(input); } catch (Throwable throwable) { LOG.error("Transform error: {}", input, throwable); this.collector.reportError(throwable); } }
public void handleRegular(Tuple tuple) { basicCollector.setContext(tuple); try { delegate.execute(tuple, basicCollector); collector.ack(tuple); } catch (FailedException e) { if (e instanceof ReportedFailedException) { collector.reportError(e); } collector.fail(tuple); } }
public void handlePrepareCommit(Tuple tuple) { basicCollector.setContext(tuple); try { BatchId id = (BatchId) tuple.getValue(0); ((IPrepareCommit) delegate).prepareCommit(id, basicCollector); collector.ack(tuple); } catch (FailedException e) { if (e instanceof ReportedFailedException) { collector.reportError(e); } collector.fail(tuple); } }