Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc::testing::XdsEnd2endTest::ServerThread Class Referenceabstract

#include <xds_end2end_test_lib.h>

Inheritance diagram for grpc::testing::XdsEnd2endTest::ServerThread:
Inheritance graph
[legend]

Classes

class  XdsChannelArgsServerBuilderOption
 
class  XdsServingStatusNotifier
 

Public Member Functions

virtual std::shared_ptr< ServerCredentialsCredentials ()
 
XdsServingStatusNotifiernotifier ()
 
int port () const
 
 ServerThread (XdsEnd2endTest *test_obj, bool use_xds_enabled_server=false)
 
void set_allow_put_requests (bool allow_put_requests)
 
void Shutdown ()
 
void Start ()
 
void StopListeningAndSendGoaways ()
 
bool use_xds_enabled_server () const
 
virtual ~ServerThread ()
 

Private Member Functions

virtual void RegisterAllServices (ServerBuilder *builder)=0
 
void Serve (grpc_core::Mutex *mu, grpc_core::CondVar *cond)
 
virtual void ShutdownAllServices ()=0
 
virtual void StartAllServices ()=0
 
virtual const char * Type ()=0
 

Private Attributes

bool allow_put_requests_ = false
 
XdsServingStatusNotifier notifier_
 
const int port_
 
bool running_ = false
 
std::unique_ptr< Serverserver_
 
XdsEnd2endTesttest_obj_
 
std::unique_ptr< std::threadthread_
 
const bool use_xds_enabled_server_
 

Detailed Description

Definition at line 215 of file xds_end2end_test_lib.h.

Constructor & Destructor Documentation

◆ ServerThread()

grpc::testing::XdsEnd2endTest::ServerThread::ServerThread ( XdsEnd2endTest test_obj,
bool  use_xds_enabled_server = false 
)
inlineexplicit

Definition at line 234 of file xds_end2end_test_lib.h.

◆ ~ServerThread()

virtual grpc::testing::XdsEnd2endTest::ServerThread::~ServerThread ( )
inlinevirtual

Definition at line 240 of file xds_end2end_test_lib.h.

Member Function Documentation

◆ Credentials()

virtual std::shared_ptr<ServerCredentials> grpc::testing::XdsEnd2endTest::ServerThread::Credentials ( )
inlinevirtual

Reimplemented in grpc::testing::XdsEnd2endTest::BackendServerThread.

Definition at line 245 of file xds_end2end_test_lib.h.

◆ notifier()

XdsServingStatusNotifier* grpc::testing::XdsEnd2endTest::ServerThread::notifier ( )
inline

Definition at line 254 of file xds_end2end_test_lib.h.

◆ port()

int grpc::testing::XdsEnd2endTest::ServerThread::port ( ) const
inline

Definition at line 250 of file xds_end2end_test_lib.h.

◆ RegisterAllServices()

virtual void grpc::testing::XdsEnd2endTest::ServerThread::RegisterAllServices ( ServerBuilder builder)
privatepure virtual

◆ Serve()

void grpc::testing::XdsEnd2endTest::ServerThread::Serve ( grpc_core::Mutex mu,
grpc_core::CondVar cond 
)
private

Definition at line 175 of file xds_end2end_test_lib.cc.

◆ set_allow_put_requests()

void grpc::testing::XdsEnd2endTest::ServerThread::set_allow_put_requests ( bool  allow_put_requests)
inline

Definition at line 256 of file xds_end2end_test_lib.h.

◆ Shutdown()

void grpc::testing::XdsEnd2endTest::ServerThread::Shutdown ( )

Definition at line 154 of file xds_end2end_test_lib.cc.

◆ ShutdownAllServices()

virtual void grpc::testing::XdsEnd2endTest::ServerThread::ShutdownAllServices ( )
privatepure virtual

◆ Start()

void grpc::testing::XdsEnd2endTest::ServerThread::Start ( )

Definition at line 138 of file xds_end2end_test_lib.cc.

◆ StartAllServices()

virtual void grpc::testing::XdsEnd2endTest::ServerThread::StartAllServices ( )
privatepure virtual

◆ StopListeningAndSendGoaways()

void grpc::testing::XdsEnd2endTest::ServerThread::StopListeningAndSendGoaways ( )

Definition at line 164 of file xds_end2end_test_lib.cc.

◆ Type()

virtual const char* grpc::testing::XdsEnd2endTest::ServerThread::Type ( )
privatepure virtual

◆ use_xds_enabled_server()

bool grpc::testing::XdsEnd2endTest::ServerThread::use_xds_enabled_server ( ) const
inline

Definition at line 252 of file xds_end2end_test_lib.h.

Member Data Documentation

◆ allow_put_requests_

bool grpc::testing::XdsEnd2endTest::ServerThread::allow_put_requests_ = false
private

Definition at line 279 of file xds_end2end_test_lib.h.

◆ notifier_

XdsServingStatusNotifier grpc::testing::XdsEnd2endTest::ServerThread::notifier_
private

Definition at line 275 of file xds_end2end_test_lib.h.

◆ port_

const int grpc::testing::XdsEnd2endTest::ServerThread::port_
private

Definition at line 273 of file xds_end2end_test_lib.h.

◆ running_

bool grpc::testing::XdsEnd2endTest::ServerThread::running_ = false
private

Definition at line 277 of file xds_end2end_test_lib.h.

◆ server_

std::unique_ptr<Server> grpc::testing::XdsEnd2endTest::ServerThread::server_
private

Definition at line 274 of file xds_end2end_test_lib.h.

◆ test_obj_

XdsEnd2endTest* grpc::testing::XdsEnd2endTest::ServerThread::test_obj_
private

Definition at line 272 of file xds_end2end_test_lib.h.

◆ thread_

std::unique_ptr<std::thread> grpc::testing::XdsEnd2endTest::ServerThread::thread_
private

Definition at line 276 of file xds_end2end_test_lib.h.

◆ use_xds_enabled_server_

const bool grpc::testing::XdsEnd2endTest::ServerThread::use_xds_enabled_server_
private

Definition at line 278 of file xds_end2end_test_lib.h.


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


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