backtype.storm.coordination
Class CoordinatedBolt.CoordinatedOutputCollector

java.lang.Object
  extended by backtype.storm.coordination.CoordinatedBolt.CoordinatedOutputCollector
All Implemented Interfaces:
IErrorReporter, IOutputCollector
Enclosing class:
CoordinatedBolt

public class CoordinatedBolt.CoordinatedOutputCollector
extends Object
implements IOutputCollector


Constructor Summary
CoordinatedBolt.CoordinatedOutputCollector(IOutputCollector delegate)
           
 
Method Summary
 void ack(Tuple tuple)
           
 List<Integer> emit(String stream, Collection<Tuple> anchors, List<Object> tuple)
          Returns the task ids that received the tuples.
 void emitDirect(int task, String stream, Collection<Tuple> anchors, List<Object> tuple)
           
 void fail(Tuple tuple)
           
 void reportError(Throwable error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinatedBolt.CoordinatedOutputCollector

public CoordinatedBolt.CoordinatedOutputCollector(IOutputCollector delegate)
Method Detail

emit

public List<Integer> emit(String stream,
                          Collection<Tuple> anchors,
                          List<Object> tuple)
Description copied from interface: IOutputCollector
Returns the task ids that received the tuples.

Specified by:
emit in interface IOutputCollector

emitDirect

public void emitDirect(int task,
                       String stream,
                       Collection<Tuple> anchors,
                       List<Object> tuple)
Specified by:
emitDirect in interface IOutputCollector

ack

public void ack(Tuple tuple)
Specified by:
ack in interface IOutputCollector

fail

public void fail(Tuple tuple)
Specified by:
fail in interface IOutputCollector

reportError

public void reportError(Throwable error)
Specified by:
reportError in interface IErrorReporter


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.