Package org.apache.storm.loadgen
Class SlowExecutorPattern
- java.lang.Object
- 
- org.apache.storm.loadgen.SlowExecutorPattern
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class SlowExecutorPattern extends Object implements Serializable A repeating pattern of skewedness in processing times. This is used to simulate an executor that slows down.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description intcountdoublemaxSlownessMs
 - 
Constructor SummaryConstructors Constructor Description SlowExecutorPattern(double maxSlownessMs, int count)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlowExecutorPatternfromConf(Map<String,Object> conf)Creates a SlowExecutorPattern from a Map config.static SlowExecutorPatternfromString(String strRepresentation)Parses a string (command line) representation of "<SLOWNESS>(:<COUNT>)?".doublegetExtraSlowness(int index)Map<String,Object>toConf()Convert this to a Config map.
 
- 
- 
- 
Method Detail- 
fromStringpublic static SlowExecutorPattern fromString(String strRepresentation) Parses a string (command line) representation of "<SLOWNESS>(:<COUNT>)?".- Parameters:
- strRepresentation- the string representation to parse
- Returns:
- the corresponding SlowExecutorPattern.
 
 - 
fromConfpublic static SlowExecutorPattern fromConf(Map<String,Object> conf) Creates a SlowExecutorPattern from a Map config.- Parameters:
- conf- the conf to parse.
- Returns:
- the corresponding SlowExecutorPattern.
 
 - 
toConfpublic Map<String,Object> toConf() Convert this to a Config map.- Returns:
- the corresponding Config map to this.
 
 - 
getExtraSlownesspublic double getExtraSlowness(int index) 
 
- 
 
-