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 void
applyDisruption(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.String
toString()
-
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.NetworkLinkDisruptionType
Applies 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:
applyDisruption
in 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:
toString
in classjava.lang.Object
-
-