public abstract class SingleNodeDisruption extends java.lang.Object implements ServiceDisruptionScheme
| Modifier and Type | Field and Description |
|---|---|
protected InternalTestCluster |
cluster |
protected java.lang.String |
disruptedNode |
protected org.elasticsearch.common.logging.ESLogger |
logger |
protected java.util.Random |
random |
| Constructor and Description |
|---|
SingleNodeDisruption(java.util.Random random) |
SingleNodeDisruption(java.lang.String disruptedNode,
java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToCluster(InternalTestCluster cluster) |
void |
applyToNode(java.lang.String node,
InternalTestCluster cluster) |
protected void |
ensureNodeCount(InternalTestCluster cluster) |
void |
removeFromCluster(InternalTestCluster cluster) |
void |
removeFromNode(java.lang.String node,
InternalTestCluster cluster) |
void |
testClusterClosed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpectedTimeToHeal, removeAndEnsureHealthy, startDisrupting, stopDisruptingprotected final org.elasticsearch.common.logging.ESLogger logger
protected volatile java.lang.String disruptedNode
protected volatile InternalTestCluster cluster
protected final java.util.Random random
public SingleNodeDisruption(java.lang.String disruptedNode,
java.util.Random random)
public SingleNodeDisruption(java.util.Random random)
public void applyToCluster(InternalTestCluster cluster)
applyToCluster in interface ServiceDisruptionSchemepublic void removeFromCluster(InternalTestCluster cluster)
removeFromCluster in interface ServiceDisruptionSchemepublic void applyToNode(java.lang.String node,
InternalTestCluster cluster)
applyToNode in interface ServiceDisruptionSchemepublic void removeFromNode(java.lang.String node,
InternalTestCluster cluster)
removeFromNode in interface ServiceDisruptionSchemepublic void testClusterClosed()
testClusterClosed in interface ServiceDisruptionSchemeprotected void ensureNodeCount(InternalTestCluster cluster)