Package org.apache.storm.loadgen
Class ThroughputVsLatency.FastRandomSentenceSpout
java.lang.Object
org.apache.storm.topology.base.BaseComponent
org.apache.storm.topology.base.BaseRichSpout
org.apache.storm.loadgen.LoadSpout
org.apache.storm.loadgen.ThroughputVsLatency.FastRandomSentenceSpout
- All Implemented Interfaces:
Serializable
,ISpout
,IComponent
,IRichSpout
- Enclosing class:
- ThroughputVsLatency
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
declareOutputFields
(OutputFieldsDeclarer declarer) Declare the output schema for all the streams of this topology.protected Values
Methods inherited from class org.apache.storm.topology.base.BaseRichSpout
activate, close, deactivate
Methods inherited from class org.apache.storm.topology.base.BaseComponent
getComponentConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.storm.topology.IComponent
getComponentConfiguration
-
Constructor Details
-
FastRandomSentenceSpout
public FastRandomSentenceSpout(long ratePerSecond) Constructor.- Parameters:
ratePerSecond
- the rate to emite tuples at.
-
-
Method Details
-
getNextValues
- Overrides:
getNextValues
in classLoadSpout
-
declareOutputFields
Description copied from interface:IComponent
Declare the output schema for all the streams of this topology.- Specified by:
declareOutputFields
in interfaceIComponent
- Overrides:
declareOutputFields
in classLoadSpout
- Parameters:
declarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream
-