Enum Class DisruptableMockTransport.ConnectionStatus
java.lang.Object
java.lang.Enum<DisruptableMockTransport.ConnectionStatus>
org.elasticsearch.test.disruption.DisruptableMockTransport.ConnectionStatus
- All Implemented Interfaces:
Serializable
,Comparable<DisruptableMockTransport.ConnectionStatus>
,Constable
- Enclosing class:
- DisruptableMockTransport
public static enum DisruptableMockTransport.ConnectionStatus
extends Enum<DisruptableMockTransport.ConnectionStatus>
Response type from
DisruptableMockTransport.getConnectionStatus(DiscoveryNode)
indicating whether, and how, messages should
be disrupted on this transport.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSimulate a blackhole partition: inbound and outbound messages are silently discarded.Simulate an asymmetric partition: outbound messages are silently discarded, but inbound messages are delivered normally.No disruption: deliver messages normally.Simulate disconnection: inbound and outbound messages throw aConnectTransportException
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTED
No disruption: deliver messages normally. -
DISCONNECTED
Simulate disconnection: inbound and outbound messages throw aConnectTransportException
. -
BLACK_HOLE
Simulate a blackhole partition: inbound and outbound messages are silently discarded. -
BLACK_HOLE_REQUESTS_ONLY
Simulate an asymmetric partition: outbound messages are silently discarded, but inbound messages are delivered normally.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-