public enum TestHostType extends java.lang.Enum<TestHostType>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract <R> OperationResult<R> |
execute(HostConnectionPool<TestClient> pool,
Operation<TestClient,R> op) |
static TestHostType |
get(int ordinal) |
abstract void |
open(long timeout) |
static TestHostType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TestHostType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestHostType ALWAYS_DOWN
public static final TestHostType CONNECT_WITH_UNCHECKED_EXCEPTION
public static final TestHostType CONNECT_TIMEOUT
public static final TestHostType CONNECT_TRANSPORT_ERROR
public static final TestHostType CONNECT_FAIL_FIRST
public static final TestHostType CONNECT_FAIL_FIRST_TWO
public static final TestHostType LOST_CONNECTION
public static final TestHostType SOCKET_TIMEOUT_AFTER10
public static final TestHostType OPERATION_TIMEOUT
public static final TestHostType SOCKET_TIMEOUT
public static final TestHostType ALTERNATING_SOCKET_TIMEOUT_200
public static final TestHostType CONNECT_BAD_REQUEST_EXCEPTION
public static final TestHostType GOOD_SLOW
public static final TestHostType GOOD_FAST
public static final TestHostType GOOD_IMMEDIATE
public static final TestHostType FAIL_AFTER_100
public static final TestHostType FAIL_AFTER_100_RANDOM
public static final TestHostType THRASHING_TIMEOUT
public static final TestHostType RECONNECT_2ND_TRY
public static final TestHostType ABORTED_CONNECTION
public static final TestHostType FAIL_AFTER_10_SLOW_CLOSE
public static final TestHostType SWAP_EVERY_200
public static final TestHostType RANDOM_ALL
public static TestHostType[] values()
for (TestHostType c : TestHostType.values()) System.out.println(c);
public static TestHostType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static TestHostType get(int ordinal)
public abstract <R> OperationResult<R> execute(HostConnectionPool<TestClient> pool, Operation<TestClient,R> op) throws ConnectionException
ConnectionExceptionpublic abstract void open(long timeout)
throws ConnectionException
ConnectionExceptionpublic void close()