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.apache.logging.log4j.Logger |
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, wait
expectedTimeToHeal, removeAndEnsureHealthy, startDisrupting, stopDisrupting
protected final org.apache.logging.log4j.Logger 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 ServiceDisruptionScheme
public void removeFromCluster(InternalTestCluster cluster)
removeFromCluster
in interface ServiceDisruptionScheme
public void applyToNode(java.lang.String node, InternalTestCluster cluster)
applyToNode
in interface ServiceDisruptionScheme
public void removeFromNode(java.lang.String node, InternalTestCluster cluster)
removeFromNode
in interface ServiceDisruptionScheme
public void testClusterClosed()
testClusterClosed
in interface ServiceDisruptionScheme
protected void ensureNodeCount(InternalTestCluster cluster)