Classes | Public Member Functions | Protected Attributes | List of all members
grpc::testing::ClientImpl< StubType, RequestType > Class Template Reference

#include <client.h>

Inheritance diagram for grpc::testing::ClientImpl< StubType, RequestType >:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from grpc::testing::Client
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< ClientChannelInfochannels_
 
const int cores_
 
std::function< std::unique_ptr< StubType >const std::shared_ptr< Channel > &)> create_stub_
 
RequestType request_
 
- Protected Attributes inherited from grpc::testing::Client
bool closed_loop_
 
InterarrivalTimer interarrival_timer_
 
int last_reset_poll_count_
 
double median_latency_collection_interval_seconds_
 
std::vector< gpr_timespecnext_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< UsageTimertimer_
 

Additional Inherited Members

- Protected Member Functions inherited from grpc::testing::Client
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
 

Detailed Description

template<class StubType, class RequestType>
class grpc::testing::ClientImpl< StubType, RequestType >

Definition at line 427 of file client.h.

Constructor & Destructor Documentation

◆ ClientImpl()

template<class StubType , class RequestType >
grpc::testing::ClientImpl< StubType, RequestType >::ClientImpl ( const ClientConfig &  config,
std::function< std::unique_ptr< StubType >(std::shared_ptr< Channel >)>  create_stub 
)
inline

Definition at line 429 of file client.h.

◆ ~ClientImpl()

template<class StubType , class RequestType >
grpc::testing::ClientImpl< StubType, RequestType >::~ClientImpl ( )
inlineoverride

Definition at line 444 of file client.h.

Member Function Documentation

◆ request()

template<class StubType , class RequestType >
const RequestType* grpc::testing::ClientImpl< StubType, RequestType >::request ( )
inline

Definition at line 445 of file client.h.

◆ WaitForChannelsToConnect()

template<class StubType , class RequestType >
void grpc::testing::ClientImpl< StubType, RequestType >::WaitForChannelsToConnect ( )
inline

Definition at line 447 of file client.h.

Member Data Documentation

◆ channels_

template<class StubType , class RequestType >
std::vector<ClientChannelInfo> grpc::testing::ClientImpl< StubType, RequestType >::channels_
protected

Definition at line 563 of file client.h.

◆ cores_

template<class StubType , class RequestType >
const int grpc::testing::ClientImpl< StubType, RequestType >::cores_
protected

Definition at line 503 of file client.h.

◆ create_stub_

template<class StubType , class RequestType >
std::function<std::unique_ptr<StubType>const std::shared_ptr<Channel>&)> grpc::testing::ClientImpl< StubType, RequestType >::create_stub_
protected

Definition at line 565 of file client.h.

◆ request_

template<class StubType , class RequestType >
RequestType grpc::testing::ClientImpl< StubType, RequestType >::request_
protected

Definition at line 504 of file client.h.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:33