Class SingleNodeDisruption
- java.lang.Object
-
- org.elasticsearch.test.disruption.SingleNodeDisruption
-
- All Implemented Interfaces:
ServiceDisruptionScheme
- Direct Known Subclasses:
BlockClusterStateProcessing,BlockMasterServiceOnMaster,BusyMasterServiceDisruption,LongGCDisruption,SlowClusterStateProcessing
public abstract class SingleNodeDisruption extends java.lang.Object implements ServiceDisruptionScheme
-
-
Field Summary
Fields Modifier and Type Field Description protected InternalTestClusterclusterprotected java.lang.StringdisruptedNodeprotected org.apache.logging.log4j.Loggerloggerprotected java.util.Randomrandom
-
Constructor Summary
Constructors Constructor Description SingleNodeDisruption(java.util.Random random)
-
Method Summary
Modifier and Type Method Description voidapplyToCluster(InternalTestCluster cluster)voidapplyToNode(java.lang.String node, InternalTestCluster cluster)protected voidensureNodeCount(InternalTestCluster cluster)voidremoveFromCluster(InternalTestCluster cluster)voidremoveFromNode(java.lang.String node, InternalTestCluster cluster)voidtestClusterClosed()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.test.disruption.ServiceDisruptionScheme
expectedTimeToHeal, removeAndEnsureHealthy, startDisrupting, stopDisrupting
-
-
-
-
Field Detail
-
logger
protected final org.apache.logging.log4j.Logger logger
-
disruptedNode
protected volatile java.lang.String disruptedNode
-
cluster
protected volatile InternalTestCluster cluster
-
random
protected final java.util.Random random
-
-
Method Detail
-
applyToCluster
public void applyToCluster(InternalTestCluster cluster)
- Specified by:
applyToClusterin interfaceServiceDisruptionScheme
-
removeFromCluster
public void removeFromCluster(InternalTestCluster cluster)
- Specified by:
removeFromClusterin interfaceServiceDisruptionScheme
-
applyToNode
public void applyToNode(java.lang.String node, InternalTestCluster cluster)- Specified by:
applyToNodein interfaceServiceDisruptionScheme
-
removeFromNode
public void removeFromNode(java.lang.String node, InternalTestCluster cluster)- Specified by:
removeFromNodein interfaceServiceDisruptionScheme
-
testClusterClosed
public void testClusterClosed()
- Specified by:
testClusterClosedin interfaceServiceDisruptionScheme
-
ensureNodeCount
protected void ensureNodeCount(InternalTestCluster cluster)
-
-