#include <client.h>
Classes | |
class | ClientChannelInfo |
Public Member Functions | |
ClientImpl (const ClientConfig &config, std::function< std::unique_ptr< StubType >(std::shared_ptr< Channel >)> create_stub) | |
const RequestType * | request () |
void | WaitForChannelsToConnect () |
~ClientImpl () override | |
![]() | |
void | AwaitThreadsCompletion () |
Client () | |
double | GetLatencyCollectionIntervalInSeconds () |
virtual int | GetPollCount () |
bool | IsClosedLoop () |
ClientStats | Mark (bool reset) |
gpr_timespec | NextIssueTime (int thread_idx) |
bool | ThreadCompleted () |
virtual | ~Client () |
Protected Attributes | |
std::vector< ClientChannelInfo > | channels_ |
const int | cores_ |
std::function< std::unique_ptr< StubType >const std::shared_ptr< Channel > &)> | create_stub_ |
RequestType | request_ |
![]() | |
bool | closed_loop_ |
InterarrivalTimer | interarrival_timer_ |
int | last_reset_poll_count_ |
double | median_latency_collection_interval_seconds_ |
std::vector< gpr_timespec > | next_time_ |
gpr_event | start_requests_ |
bool | started_requests_ |
std::mutex | thread_completion_mu_ |
gpr_atm | thread_pool_done_ |
std::vector< std::unique_ptr< Thread > > | threads_ |
std::condition_variable | threads_complete_ |
size_t | threads_remaining_ |
std::unique_ptr< UsageTimer > | timer_ |
Additional Inherited Members | |
![]() | |
void | CompleteThread () |
virtual void | DestroyMultithreading ()=0 |
void | EndThreads () |
void | MaybeStartRequests () |
std::function< gpr_timespec()> | NextIssuer (int thread_idx) |
void | SetupLoadTest (const ClientConfig &config, size_t num_threads) |
void | StartThreads (size_t num_threads) |
virtual void | ThreadFunc (size_t thread_idx, Client::Thread *t)=0 |
|
inline |
|
inlineoverride |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |