public class TESTReconfigurationClient extends DefaultTest
| Modifier and Type | Field and Description |
|---|---|
protected static long |
DEFAULT_APP_REQUEST_TIMEOUT |
protected static long |
DEFAULT_RTX_TIMEOUT |
repeatRule, testName, watcher| Modifier | Constructor and Description |
|---|---|
|
TESTReconfigurationClient() |
protected |
TESTReconfigurationClient(java.util.Map<java.lang.String,java.net.InetSocketAddress> reconfigurators) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
closeServers() |
static void |
main(java.lang.String[] args) |
protected static void |
setLoopbackMode(boolean b) |
static void |
startServers() |
void |
test00_AnycastRequest() |
void |
test00_CreateExistsDelete()
Tests creation and deletion of a single name.
|
void |
test00_RandomNameAppRequestFails()
Tests that a request to a random app name fails as expected.
|
void |
test00_RandomNameDeleteFails()
Tests that a delete of a random (non-existent) name fails.
|
void |
test00_RandomNameNotExists()
Tests that a random name does not exist.
|
void |
test00_RequestRandomActive() |
void |
test01_BasicSequence()
Tests creation, existence, app requests, deletion, and non-existence of a
set of names.
|
void |
test02_MutualAuthRequest() |
void |
test02_NonDefaultRequest()
Method to test
AppRequest.PacketType.APP_REQUEST3 that is a transaction. |
void |
test02_ReplicableClientRequest() |
void |
test03_BasicSequenceBatched()
Same as
test01_BasicSequence() but with batch created names. |
void |
test04_ReconfigurationRate() |
void |
test20_RandomActiveReplicaDelete()
Deletion of a non-existent active replica succeeds.
|
void |
test20_RandomActiveReplicaDeleteAfterAdd()
Addition of a random active replica succeeds (as it appears to other
nodes as simply failed).
|
void |
test21_DeleteActiveReplica() |
void |
test22_AddActiveReplica() |
void |
test31_AddReconfigurator() |
void |
test32_DeleteReconfigurator() |
java.lang.String |
toString() |
afterMethod, beforeMethod, test, testAll, testAll, testPackageprotected static final long DEFAULT_RTX_TIMEOUT
protected static final long DEFAULT_APP_REQUEST_TIMEOUT
public TESTReconfigurationClient()
throws java.io.IOException
java.io.IOExceptionprotected TESTReconfigurationClient(java.util.Map<java.lang.String,java.net.InetSocketAddress> reconfigurators)
throws java.io.IOException
java.io.IOExceptionprotected static void setLoopbackMode(boolean b)
public void close()
public void test00_RandomNameAppRequestFails()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test00_RandomNameNotExists()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test00_RequestRandomActive()
throws java.io.IOException
java.io.IOExceptionpublic void test00_AnycastRequest()
throws java.io.IOException
java.io.IOExceptionpublic void test00_CreateExistsDelete()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test00_RandomNameDeleteFails()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test01_BasicSequence()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.NumberFormatExceptionpublic void test02_ReplicableClientRequest()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test02_NonDefaultRequest()
throws java.lang.NumberFormatException,
java.io.IOException,
java.lang.InterruptedException
AppRequest.PacketType.APP_REQUEST3 that is a transaction.java.lang.NumberFormatExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void test02_MutualAuthRequest()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.NumberFormatExceptionjava.lang.InterruptedExceptionpublic void test03_BasicSequenceBatched()
throws java.io.IOException,
java.lang.NumberFormatException,
java.lang.InterruptedException
test01_BasicSequence() but with batch created names.java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.NumberFormatExceptionpublic void test04_ReconfigurationRate()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void test20_RandomActiveReplicaDelete()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void test20_RandomActiveReplicaDeleteAfterAdd()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void test21_DeleteActiveReplica()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void test22_AddActiveReplica()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void test31_AddReconfigurator()
throws java.io.IOException
java.io.IOExceptionpublic void test32_DeleteReconfigurator()
throws java.io.IOException
java.io.IOExceptionpublic static void startServers()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void closeServers()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException
args - java.io.IOExceptionjava.lang.InterruptedException