NetworkDisruption.NetworkDelay, NetworkDisruption.NetworkDisconnect, NetworkDisruption.NetworkUnresponsivepublic abstract static class NetworkDisruption.NetworkLinkDisruptionType
extends java.lang.Object
applyDisruption(org.elasticsearch.test.transport.MockTransportService, org.elasticsearch.test.transport.MockTransportService)
method to apply their specific disruption type to requests that are send from a source to a target node.| Constructor | Description |
|---|---|
NetworkLinkDisruptionType() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract 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.
|
TimeValue |
expectedTimeToHeal() |
Returns expected time to heal after disruption has been removed.
|
void |
removeDisruption(MockTransportService sourceTransportService,
MockTransportService targetTransportService) |
Removes network disruption that was added by
applyDisruption(org.elasticsearch.test.transport.MockTransportService, org.elasticsearch.test.transport.MockTransportService). |
public abstract void applyDisruption(MockTransportService sourceTransportService, MockTransportService targetTransportService)
sourceTransportService - source transport service from which requests are senttargetTransportService - target transport service to which requests are sentpublic void removeDisruption(MockTransportService sourceTransportService, MockTransportService targetTransportService)
applyDisruption(org.elasticsearch.test.transport.MockTransportService, org.elasticsearch.test.transport.MockTransportService).sourceTransportService - source transport service from which requests are senttargetTransportService - target transport service to which requests are sentpublic TimeValue expectedTimeToHeal()