Package org.apache.storm.starter.spout
Class RandomNumberGeneratorSpout
java.lang.Object
org.apache.storm.starter.spout.RandomNumberGeneratorSpout
- All Implemented Interfaces:
- Serializable,- IBatchSpout,- ITridentDataSource
This spout generates random whole numbers with given 
maxNumber value as maximum with the given fields.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidack(long batchId) voidclose()voidemitBatch(long batchId, TridentCollector collector) voidopen(Map<String, Object> conf, TopologyContext context) 
- 
Constructor Details- 
RandomNumberGeneratorSpout
 
- 
- 
Method Details- 
open- Specified by:
- openin interface- IBatchSpout
 
- 
emitBatch- Specified by:
- emitBatchin interface- IBatchSpout
 
- 
ackpublic void ack(long batchId) - Specified by:
- ackin interface- IBatchSpout
 
- 
closepublic void close()- Specified by:
- closein interface- IBatchSpout
 
- 
getComponentConfiguration- Specified by:
- getComponentConfigurationin interface- IBatchSpout
 
- 
getOutputFields- Specified by:
- getOutputFieldsin interface- IBatchSpout
 
 
-