storm.trident.testing
Class FixedBatchSpout

java.lang.Object
  extended by storm.trident.testing.FixedBatchSpout
All Implemented Interfaces:
java.io.Serializable, IBatchSpout

public class FixedBatchSpout
extends java.lang.Object
implements IBatchSpout

See Also:
Serialized Form

Constructor Summary
FixedBatchSpout(Fields fields, int maxBatchSize, java.util.List<java.lang.Object>... outputs)
           
 
Method Summary
 void ack(long batchId)
           
 void close()
           
 void emitBatch(long batchId, TridentCollector collector)
           
 java.util.Map getComponentConfiguration()
           
 Fields getOutputFields()
           
 void open(java.util.Map conf, TopologyContext context)
           
 void setCycle(boolean cycle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedBatchSpout

public FixedBatchSpout(Fields fields,
                       int maxBatchSize,
                       java.util.List<java.lang.Object>... outputs)
Method Detail

setCycle

public void setCycle(boolean cycle)

open

public void open(java.util.Map conf,
                 TopologyContext context)
Specified by:
open in interface IBatchSpout

emitBatch

public void emitBatch(long batchId,
                      TridentCollector collector)
Specified by:
emitBatch in interface IBatchSpout

ack

public void ack(long batchId)
Specified by:
ack in interface IBatchSpout

close

public void close()
Specified by:
close in interface IBatchSpout

getComponentConfiguration

public java.util.Map getComponentConfiguration()
Specified by:
getComponentConfiguration in interface IBatchSpout

getOutputFields

public Fields getOutputFields()
Specified by:
getOutputFields in interface IBatchSpout