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.IOException
protected 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.IOException
org.json.JSONException
public 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.JSONException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
protected boolean makeAndSendRequestCallable(java.lang.String paxosID) throws org.json.JSONException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
org.json.JSONException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
protected 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.JSONException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
protected 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.InterruptedException
protected static void twoPhaseTest(int numReqs, TESTPaxosClient[] clients) throws java.lang.InterruptedException, org.json.JSONException, java.io.IOException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
org.json.JSONException
java.io.IOException
java.util.concurrent.ExecutionException
public static void main(java.lang.String[] args)
args
-