return new PerfClient(crf, numThreads);
}
public static PerfClient httpRest(URI uri, int numThreads, int numMsgs, int msgSize)
{
final TransportClient transportClient = new HttpClientFactory().getClient(Collections.<String, String>emptyMap());
final Client client = new TransportClientAdapter(transportClient);
final RequestGenerator<RestRequest> reqGen = new RestRequestGenerator(uri, numMsgs, msgSize);
final ClientRunnableFactory crf = new RestClientRunnableFactory(client, reqGen);
return new PerfClient(crf, numThreads);