Class IntermittentLongGCDisruption
java.lang.Object
org.elasticsearch.test.disruption.SingleNodeDisruption
org.elasticsearch.test.disruption.LongGCDisruption
org.elasticsearch.test.disruption.IntermittentLongGCDisruption
- All Implemented Interfaces:
ServiceDisruptionScheme
public class IntermittentLongGCDisruption extends LongGCDisruption
Simulates irregular long gc intervals.
-
Field Summary
Fields inherited from class org.elasticsearch.test.disruption.SingleNodeDisruption
cluster, logger, random
-
Constructor Summary
Constructors Constructor Description IntermittentLongGCDisruption(java.util.Random random, java.lang.String disruptedNode, long intervalBetweenDelaysMin, long intervalBetweenDelaysMax, long delayDurationMin, long delayDurationMax)
-
Method Summary
Modifier and Type Method Description void
startDisrupting()
void
stopDisrupting()
Methods inherited from class org.elasticsearch.test.disruption.LongGCDisruption
expectedTimeToHeal, getBlockDetectionIntervalInMillis, getSuspendingTimeoutInMillis, getUnsafeClasses, isBlockDetectionSupported, isDisruptedNodeThread, onBlockDetected, removeAndEnsureHealthy, resumeThreads, sawSlowSuspendBug, suspendThreads
Methods inherited from class org.elasticsearch.test.disruption.SingleNodeDisruption
applyToCluster, applyToNode, ensureNodeCount, removeFromCluster, removeFromNode, testClusterClosed
-
Constructor Details
-
IntermittentLongGCDisruption
public IntermittentLongGCDisruption(java.util.Random random, java.lang.String disruptedNode, long intervalBetweenDelaysMin, long intervalBetweenDelaysMax, long delayDurationMin, long delayDurationMax)
-
-
Method Details
-
startDisrupting
public void startDisrupting()- Specified by:
startDisrupting
in interfaceServiceDisruptionScheme
- Overrides:
startDisrupting
in classLongGCDisruption
-
stopDisrupting
public void stopDisrupting()- Specified by:
stopDisrupting
in interfaceServiceDisruptionScheme
- Overrides:
stopDisrupting
in classLongGCDisruption
-