Search in sources :

Example 1 with IPostCommit

use of com.alibaba.jstorm.batch.IPostCommit in project jstorm by alibaba.

the class CoordinatedBolt method handlePostCommit.

public void handlePostCommit(Tuple tuple) {
    basicCollector.setContext(tuple);
    try {
        BatchId id = (BatchId) tuple.getValue(0);
        ((IPostCommit) delegate).postCommit(id, basicCollector);
    } catch (Exception e) {
        LOG.info("Failed to do postCommit,", e);
    }
    collector.ack(tuple);
}
Also used : IPostCommit(com.alibaba.jstorm.batch.IPostCommit) BatchId(com.alibaba.jstorm.batch.BatchId) FailedException(backtype.storm.topology.FailedException) ReportedFailedException(backtype.storm.topology.ReportedFailedException)

Aggregations

FailedException (backtype.storm.topology.FailedException)1 ReportedFailedException (backtype.storm.topology.ReportedFailedException)1 BatchId (com.alibaba.jstorm.batch.BatchId)1 IPostCommit (com.alibaba.jstorm.batch.IPostCommit)1