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.
| Modifier and Type | Field and Description | 
|---|---|
int | 
count  | 
double | 
maxSlownessMs  | 
| Constructor and Description | 
|---|
SlowExecutorPattern(double maxSlownessMs,
                   int count)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SlowExecutorPattern | 
fromConf(Map<String,Object> conf)
Creates a SlowExecutorPattern from a Map config. 
 | 
static SlowExecutorPattern | 
fromString(String strRepresentation)
Parses a string (command line) representation of “<SLOWNESS>(:<COUNT>)?”. 
 | 
double | 
getExtraSlowness(int index)  | 
Map<String,Object> | 
toConf()
Convert this to a Config map. 
 | 
public static SlowExecutorPattern fromString(String strRepresentation)
Parses a string (command line) representation of “<SLOWNESS>(:<COUNT>)?”.
strRepresentation - the string representation to parsepublic static SlowExecutorPattern fromConf(Map<String,Object> conf)
Creates a SlowExecutorPattern from a Map config.
conf - the conf to parse.public Map<String,Object> toConf()
Convert this to a Config map.
public double getExtraSlowness(int index)
Copyright © 2022 The Apache Software Foundation. All rights reserved.