Package org.apache.storm.loadgen
Class InputStream
java.lang.Object
org.apache.storm.loadgen.InputStream
- All Implemented Interfaces:
- Serializable
A set of measurements about a stream so we can statistically reproduce it.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal NormalDistStatsfinal Stringfinal GroupingTypefinal Stringfinal NormalDistStatsfinal String
- 
Constructor SummaryConstructorsConstructorDescriptionInputStream(String fromComponent, String toComponent, String id, NormalDistStats execTime, NormalDistStats processTime, GroupingType groupingType) Create a new input stream to a bolt.
- 
Method SummaryModifier and TypeMethodDescriptionstatic InputStreamCreate an output stream from a config.gsid()Get the global stream id for this input stream.remap(Map<String, String> remappedComponents, Map<GlobalStreamId, GlobalStreamId> remappedStreams) Remap the names of components.Replace all SHUFFLE groupings with LOCAL_OR_SHUFFLE.toConf()Convert this to a conf.
- 
Field Details- 
fromComponent
- 
toComponent
- 
id
- 
execTime
- 
processTime
- 
groupingType
 
- 
- 
Constructor Details- 
InputStreampublic InputStream(String fromComponent, String toComponent, String id, NormalDistStats execTime, NormalDistStats processTime, GroupingType groupingType) Create a new input stream to a bolt.- Parameters:
- fromComponent- the source component of the stream.
- id- the id of the stream
- execTime- exec time stats
- processTime- process time stats
 
 
- 
- 
Method Details- 
fromConfCreate an output stream from a config.- Parameters:
- conf- the config to read from.
- Returns:
- the read OutputStream.
 
- 
toConfConvert this to a conf.- Returns:
- the conf.
 
- 
gsidGet the global stream id for this input stream.- Returns:
- the GlobalStreamId for this input stream.
 
- 
remappublic InputStream remap(Map<String, String> remappedComponents, Map<GlobalStreamId, GlobalStreamId> remappedStreams) Remap the names of components.- Parameters:
- remappedComponents- old name to new name of components.
- remappedStreams- old ID to new ID of streams.
- Returns:
- a modified version of this with names remapped.
 
- 
replaceShuffleWithLocalOrShuffleReplace all SHUFFLE groupings with LOCAL_OR_SHUFFLE.- Returns:
- a modified copy of this
 
 
-