public final class AsyncClientWorker extends AbstractClientWorker implements com.google.common.util.concurrent.FutureCallback<Object>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AsyncClientWorker.LoadTest |
clientManager, config, requestsFailed, requestsPending, requestsProcessed, serverHostAndPort| Constructor and Description |
|---|
AsyncClientWorker(LoadGeneratorCommandLineConfig config,
ThriftClientManager clientManager,
com.facebook.nifty.client.NiftyClientConnector<? extends com.facebook.nifty.client.NiftyClientChannel> connector) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillRequestPipeline(AsyncClientWorker.LoadTest client) |
void |
onFailure(Throwable t) |
void |
onSuccess(Object result) |
void |
reconnect() |
void |
run() |
protected long |
sendRequest(AsyncClientWorker.LoadTest client) |
void |
shutdown() |
collectFailedOperationCount, collectSuccessfulOperationCount, getOperationsPerConnection@Inject public AsyncClientWorker(LoadGeneratorCommandLineConfig config, ThriftClientManager clientManager, com.facebook.nifty.client.NiftyClientConnector<? extends com.facebook.nifty.client.NiftyClientChannel> connector)
public void shutdown()
shutdown in class AbstractClientWorkerpublic void reconnect()
reconnect in class AbstractClientWorkerprotected long sendRequest(AsyncClientWorker.LoadTest client) throws org.apache.thrift.TException
org.apache.thrift.TExceptionprotected void fillRequestPipeline(AsyncClientWorker.LoadTest client)
public void onSuccess(Object result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<Object>Copyright © 2012-2013 Facebook, Inc.. All Rights Reserved.