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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareOutputFields(OutputFieldsDeclarer declarer) Declare the output schema for all the streams of this topology.protected ValuesMethods inherited from class org.apache.storm.topology.base.BaseRichSpout
activate, close, deactivateMethods inherited from class org.apache.storm.topology.base.BaseComponent
getComponentConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getNextValuesin classLoadSpout
-
declareOutputFields
Description copied from interface:IComponentDeclare the output schema for all the streams of this topology.- Specified by:
declareOutputFieldsin interfaceIComponent- Overrides:
declareOutputFieldsin classLoadSpout- Parameters:
declarer- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream
-