public class TESTPaxosClient
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
TESTPaxosClient(int id,
NodeConfig<java.lang.Integer> nc) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
getAggregateOutput(long delay) |
static java.lang.String |
getGibberish() |
protected static java.util.Set<RequestPacket> |
getMissingRequests(TESTPaxosClient[] clients) |
protected static int |
getTotalNoopCount() |
static void |
main(java.lang.String[] args) |
protected boolean |
makeAndSendRequest(java.lang.String paxosID) |
protected boolean |
makeAndSendRequestCallable(java.lang.String paxosID) |
protected static boolean |
noOutstanding(TESTPaxosClient[] clients) |
protected static void |
printOutput(TESTPaxosClient[] clients) |
protected static void |
resetLatencyComputation(TESTPaxosClient[] clients) |
protected boolean |
sendRequest(int id,
RequestPacket req) |
protected static void |
sendTestRequests(int numReqs,
TESTPaxosClient[] clients,
double load) |
protected static TESTPaxosClient[] |
setupClients(NodeConfig<java.lang.Integer> nc) |
protected static void |
twoPhaseTest(int numReqs,
TESTPaxosClient[] clients) |
protected static void |
waitForResponses(TESTPaxosClient[] clients,
long startTime,
int numRequests) |
protected static void |
waitUntilRunDone() |
protected TESTPaxosClient(int id,
NodeConfig<java.lang.Integer> nc)
throws java.io.IOException
java.io.IOExceptionprotected static void resetLatencyComputation(TESTPaxosClient[] clients)
protected static int getTotalNoopCount()
protected boolean sendRequest(int id,
RequestPacket req)
throws java.io.IOException,
org.json.JSONException
java.io.IOExceptionorg.json.JSONExceptionpublic static java.lang.String getGibberish()
protected boolean makeAndSendRequest(java.lang.String paxosID)
throws org.json.JSONException,
java.io.IOException,
java.lang.InterruptedException,
java.util.concurrent.ExecutionException
org.json.JSONExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected boolean makeAndSendRequestCallable(java.lang.String paxosID)
throws org.json.JSONException,
java.io.IOException,
java.lang.InterruptedException,
java.util.concurrent.ExecutionException
org.json.JSONExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected static TESTPaxosClient[] setupClients(NodeConfig<java.lang.Integer> nc)
protected static void sendTestRequests(int numReqs,
TESTPaxosClient[] clients,
double load)
throws org.json.JSONException,
java.io.IOException,
java.lang.InterruptedException,
java.util.concurrent.ExecutionException
org.json.JSONExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected static void waitForResponses(TESTPaxosClient[] clients, long startTime, int numRequests)
protected static boolean noOutstanding(TESTPaxosClient[] clients)
protected static java.util.Set<RequestPacket> getMissingRequests(TESTPaxosClient[] clients)
protected static void printOutput(TESTPaxosClient[] clients)
protected static java.lang.String getAggregateOutput(long delay)
protected static void waitUntilRunDone()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected static void twoPhaseTest(int numReqs,
TESTPaxosClient[] clients)
throws java.lang.InterruptedException,
org.json.JSONException,
java.io.IOException,
java.util.concurrent.ExecutionException
java.lang.InterruptedExceptionorg.json.JSONExceptionjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionpublic static void main(java.lang.String[] args)
args -