public class ChaosEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
String |
name |
long |
probability |
ChaosTarget |
target |
| Constructor and Description |
|---|
ChaosEntry(String name,
ChaosTarget target,
long probability,
com.codahale.metrics.MetricRegistry metrics)
Constructor -includes validation of all arguments
|
| Modifier and Type | Method and Description |
|---|---|
void |
invokeChaos()
Trigger the chaos action
|
boolean |
maybeInvokeChaos(long value)
Invoke Chaos if the trigger value is in range of the probability
|
protected static final org.slf4j.Logger log
public final String name
public final ChaosTarget target
public final long probability
public ChaosEntry(String name, ChaosTarget target, long probability, com.codahale.metrics.MetricRegistry metrics)
name - entry nametarget - targetprobability - probability of occurringCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.