Class NetworkDisruption.NetworkDisconnect
- java.lang.Object
-
- org.elasticsearch.test.disruption.NetworkDisruption.NetworkLinkDisruptionType
-
- org.elasticsearch.test.disruption.NetworkDisruption.NetworkDisconnect
-
- Enclosing class:
- NetworkDisruption
public static class NetworkDisruption.NetworkDisconnect extends NetworkDisruption.NetworkLinkDisruptionType
Simulates a network disconnect. Sending a request from source to target node throws aConnectTransportException.
-
-
Constructor Summary
Constructors Constructor Description NetworkDisconnect()
-
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
-
-
-
-
Method Detail
-
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
-
-