Class SingleNodeDisruption
java.lang.Object
org.elasticsearch.test.disruption.SingleNodeDisruption
- All Implemented Interfaces:
ServiceDisruptionScheme
- Direct Known Subclasses:
BlockClusterStateProcessing,BlockMasterServiceOnMaster,BusyMasterServiceDisruption,SlowClusterStateProcessing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InternalTestClusterprotected Stringprotected final org.apache.logging.log4j.Loggerprotected final Random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToCluster(InternalTestCluster testCluster) voidapplyToNode(String node, InternalTestCluster testCluster) protected voidensureNodeCount(InternalTestCluster testCluster) voidremoveFromCluster(InternalTestCluster testCluster) voidremoveFromNode(String node, InternalTestCluster testCluster) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.test.disruption.ServiceDisruptionScheme
expectedTimeToHeal, removeAndEnsureHealthy, startDisrupting, stopDisrupting
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger -
disruptedNode
-
cluster
-
random
-
-
Constructor Details
-
SingleNodeDisruption
-
-
Method Details
-
applyToCluster
- Specified by:
applyToClusterin interfaceServiceDisruptionScheme
-
removeFromCluster
- Specified by:
removeFromClusterin interfaceServiceDisruptionScheme
-
applyToNode
- Specified by:
applyToNodein interfaceServiceDisruptionScheme
-
removeFromNode
- Specified by:
removeFromNodein interfaceServiceDisruptionScheme
-
testClusterClosed
public void testClusterClosed()- Specified by:
testClusterClosedin interfaceServiceDisruptionScheme
-
ensureNodeCount
-