/** * Hands off tuple to the wrapped bolt to execute. Sub-classes can * override the behavior. * <p> * Right now tuples continue to get forwarded while waiting for checkpoints to arrive on other streams * after checkpoint arrives on one of the streams. This can cause duplicates but still at least once. * </p> * * @param input the input tuple */ protected void handleTuple(Tuple input) { bolt.execute(input); }
public void run() { try { while (true) { _delegate.execute(_rrQueue.take()); } } catch (InterruptedException ignored) { } } });
public void run() { try { while(true) { _delegate.execute(_rrQueue.take()); } } catch (InterruptedException e) { } } });
} else { synchronized (_tracked) { _delegate.execute(tuple);
@Override public void execute(Tuple input) { long rootId = getRootId(input); if (rootId != 0) { long batchId = ((TupleImplExt) input).getBatchId(); String streamId = input.getSourceStreamId(); Pair<Long, Integer> pendingBatch = batchXorTracker.getPendingBatch(batchId, streamId, true); if (pendingBatch == null) { pendingBatch = new Pair<>(0l, 0); batchXorTracker.putPendingBatch(batchId, streamId, pendingBatch); } pendingBatch.setFirst(JStormUtils.bit_xor(pendingBatch.getFirst(), rootId)); int count = pendingBatch.getSecond(); pendingBatch.setSecond(++count); } bolt.execute(input); }
_delegate.execute(tuple);
/** * Hands off tuple to the wrapped bolt to execute. Sub-classes can * override the behavior. * <p> * Right now tuples continue to get forwarded while waiting for checkpoints to arrive on other streams * after checkpoint arrives on one of the streams. This can cause duplicates but still at least once. * </p> * * @param input the input tuple */ protected void handleTuple(Tuple input) { bolt.execute(input); }
public void run() { try { while (true) { _delegate.execute(_rrQueue.take()); } } catch (InterruptedException e) { } } });
@Override public void execute(Tuple tuple) { try { getDelegate().execute(tuple); } catch (FrameworkException ex) { LOG.error("execute() not delegated due to a Framework exception: ", ex); } }
@Override public void execute(com.twitter.heron.api.tuple.Tuple tuple) { TupleImpl impl = new TupleImpl(tuple); delegate.execute(impl); }
public void run() { try { while(true) { _delegate.execute(_rrQueue.take()); } } catch (InterruptedException e) { } } });
} else { synchronized (_tracked) { _delegate.execute(tuple);
} else { synchronized(_tracked) { _delegate.execute(tuple);