Class SingleNodeDisruption
java.lang.Object
org.elasticsearch.test.disruption.SingleNodeDisruption
- All Implemented Interfaces:
ServiceDisruptionScheme
- Direct Known Subclasses:
BlockClusterStateProcessing,BlockMasterServiceOnMaster,BusyMasterServiceDisruption,LongGCDisruption,SlowClusterStateProcessing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InternalTestClusterprotected Stringprotected org.apache.logging.log4j.Loggerprotected Random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToCluster(InternalTestCluster cluster)voidapplyToNode(String node, InternalTestCluster cluster)protected voidensureNodeCount(InternalTestCluster cluster)voidremoveFromCluster(InternalTestCluster cluster)voidremoveFromNode(String node, InternalTestCluster cluster)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
-