public abstract class AbstractClientWorker extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected ThriftClientManager |
clientManager |
protected LoadGeneratorCommandLineConfig |
config |
protected AtomicLong |
requestsFailed |
protected AtomicLong |
requestsPending |
protected AtomicLong |
requestsProcessed |
protected com.google.common.net.HostAndPort |
serverHostAndPort |
| Constructor and Description |
|---|
AbstractClientWorker(ThriftClientManager clientManager,
LoadGeneratorCommandLineConfig config) |
| Modifier and Type | Method and Description |
|---|---|
long |
collectFailedOperationCount() |
long |
collectSuccessfulOperationCount() |
long |
getOperationsPerConnection() |
void |
reconnect() |
abstract void |
shutdown() |
protected final LoadGeneratorCommandLineConfig config
protected final ThriftClientManager clientManager
protected final com.google.common.net.HostAndPort serverHostAndPort
protected AtomicLong requestsProcessed
protected AtomicLong requestsFailed
protected AtomicLong requestsPending
public AbstractClientWorker(ThriftClientManager clientManager, LoadGeneratorCommandLineConfig config)
public long collectSuccessfulOperationCount()
public long collectFailedOperationCount()
public long getOperationsPerConnection()
public void reconnect()
public abstract void shutdown()
Copyright © 2012-2013 Facebook, Inc.. All Rights Reserved.