public class SlowExecutorPattern extends Object implements Serializable
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)
strRepresentation
- the string representation to parsepublic static SlowExecutorPattern fromConf(Map<String,Object> conf)
conf
- the conf to parse.public Map<String,Object> toConf()
public double getExtraSlowness(int index)
Copyright © 2023 The Apache Software Foundation. All rights reserved.