storm.trident.testing
Class FeederBatchSpout.FeederEmitter

java.lang.Object
  extended by storm.trident.testing.FeederBatchSpout.FeederEmitter
All Implemented Interfaces:
ITridentSpout.Emitter<java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>>
Enclosing class:
FeederBatchSpout

public class FeederBatchSpout.FeederEmitter
extends java.lang.Object
implements ITridentSpout.Emitter<java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>>


Constructor Summary
FeederBatchSpout.FeederEmitter(int index)
           
 
Method Summary
 void close()
          Release any resources held by this emitter.
 void emitBatch(TransactionAttempt tx, java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>> coordinatorMeta, TridentCollector collector)
          Emit a batch for the specified transaction attempt and metadata for the transaction.
 void success(TransactionAttempt tx)
          This attempt committed successfully, so all state for this commit and before can be safely cleaned up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeederBatchSpout.FeederEmitter

public FeederBatchSpout.FeederEmitter(int index)
Method Detail

emitBatch

public void emitBatch(TransactionAttempt tx,
                      java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>> coordinatorMeta,
                      TridentCollector collector)
Description copied from interface: ITridentSpout.Emitter
Emit a batch for the specified transaction attempt and metadata for the transaction. The metadata was created by the Coordinator in the initializeTranaction method. This method must always emit the same batch of tuples across all tasks for the same transaction id.

Specified by:
emitBatch in interface ITridentSpout.Emitter<java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>>

success

public void success(TransactionAttempt tx)
Description copied from interface: ITridentSpout.Emitter
This attempt committed successfully, so all state for this commit and before can be safely cleaned up.

Specified by:
success in interface ITridentSpout.Emitter<java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>>

close

public void close()
Description copied from interface: ITridentSpout.Emitter
Release any resources held by this emitter.

Specified by:
close in interface ITridentSpout.Emitter<java.util.Map<java.lang.Integer,java.util.List<java.util.List<java.lang.Object>>>>