Class NetworkDisruption.NetworkUnresponsive
java.lang.Object
org.elasticsearch.test.disruption.NetworkDisruption.NetworkLinkDisruptionType
org.elasticsearch.test.disruption.NetworkDisruption.NetworkUnresponsive
- Enclosing class:
- NetworkDisruption
public static class NetworkDisruption.NetworkUnresponsive extends NetworkDisruption.NetworkLinkDisruptionType
Simulates an unresponsive target node by dropping requests sent from source to target node.
-
Constructor Summary
Constructors Constructor Description NetworkUnresponsive() -
Method Summary
Modifier and Type Method Description voidapplyDisruption(MockTransportService sourceTransportService, MockTransportService targetTransportService)Applies network disruption for requests send from the node represented by the source transport service to the node represented by the target transport service.java.lang.StringtoString()Methods inherited from class org.elasticsearch.test.disruption.NetworkDisruption.NetworkLinkDisruptionType
expectedTimeToHeal, removeDisruption
-
Constructor Details
-
NetworkUnresponsive
public NetworkUnresponsive()
-
-
Method Details
-
applyDisruption
public void applyDisruption(MockTransportService sourceTransportService, MockTransportService targetTransportService)Description copied from class:NetworkDisruption.NetworkLinkDisruptionTypeApplies network disruption for requests send from the node represented by the source transport service to the node represented by the target transport service.- Specified by:
applyDisruptionin classNetworkDisruption.NetworkLinkDisruptionType- Parameters:
sourceTransportService- source transport service from which requests are senttargetTransportService- target transport service to which requests are sent
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-