Package org.apache.storm.loadgen
Class SlowExecutorPattern
java.lang.Object
org.apache.storm.loadgen.SlowExecutorPattern
- All Implemented Interfaces:
- Serializable
A repeating pattern of skewedness in processing times.  This is used to simulate an executor that slows down.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SlowExecutorPatternCreates a SlowExecutorPattern from a Map config.static SlowExecutorPatternfromString(String strRepresentation) Parses a string (command line) representation of "<SLOWNESS>(:<COUNT>)?".doublegetExtraSlowness(int index) toConf()Convert this to a Config map.
- 
Field Details- 
maxSlownessMspublic final double maxSlownessMs
- 
countpublic final int count
 
- 
- 
Constructor Details- 
SlowExecutorPatternpublic SlowExecutorPattern(double maxSlownessMs, int count) 
 
- 
- 
Method Details- 
fromStringParses a string (command line) representation of "<SLOWNESS>(:<COUNT>)?".- Parameters:
- strRepresentation- the string representation to parse
- Returns:
- the corresponding SlowExecutorPattern.
 
- 
fromConfCreates a SlowExecutorPattern from a Map config.- Parameters:
- conf- the conf to parse.
- Returns:
- the corresponding SlowExecutorPattern.
 
- 
toConfConvert this to a Config map.- Returns:
- the corresponding Config map to this.
 
- 
getExtraSlownesspublic double getExtraSlowness(int index) 
 
-