GRPC C++  1.26.0
Data Structures | Public Types | Public Member Functions
grpc::DefaultHealthCheckService Class Referencefinal

#include <default_health_check_service.h>

Data Structures

class  HealthCheckServiceImpl
 

Public Types

enum  ServingStatus { NOT_FOUND, SERVING, NOT_SERVING }
 

Public Member Functions

 DefaultHealthCheckService ()
 
void SetServingStatus (const grpc::string &service_name, bool serving) override
 Set or change the serving status of the given service_name. More...
 
void SetServingStatus (bool serving) override
 Apply to all registered service names. More...
 
void Shutdown () override
 Set all registered service names to not serving and prevent future state changes. More...
 
ServingStatus GetServingStatus (const grpc::string &service_name) const
 
HealthCheckServiceImplGetHealthCheckService (std::unique_ptr< ServerCompletionQueue > cq)
 
- Public Member Functions inherited from grpc_impl::HealthCheckServiceInterface
virtual ~HealthCheckServiceInterface ()
 

Member Enumeration Documentation

◆ ServingStatus

Enumerator
NOT_FOUND 
SERVING 
NOT_SERVING 

Constructor & Destructor Documentation

◆ DefaultHealthCheckService()

grpc::DefaultHealthCheckService::DefaultHealthCheckService ( )

Member Function Documentation

◆ GetHealthCheckService()

DefaultHealthCheckService::HealthCheckServiceImpl * grpc::DefaultHealthCheckService::GetHealthCheckService ( std::unique_ptr< ServerCompletionQueue cq)

◆ GetServingStatus()

DefaultHealthCheckService::ServingStatus grpc::DefaultHealthCheckService::GetServingStatus ( const grpc::string service_name) const

◆ SetServingStatus() [1/2]

void grpc::DefaultHealthCheckService::SetServingStatus ( const grpc::string service_name,
bool  serving 
)
overridevirtual

Set or change the serving status of the given service_name.

Implements grpc_impl::HealthCheckServiceInterface.

◆ SetServingStatus() [2/2]

void grpc::DefaultHealthCheckService::SetServingStatus ( bool  serving)
overridevirtual

Apply to all registered service names.

Implements grpc_impl::HealthCheckServiceInterface.

◆ Shutdown()

void grpc::DefaultHealthCheckService::Shutdown ( )
overridevirtual

Set all registered service names to not serving and prevent future state changes.

Reimplemented from grpc_impl::HealthCheckServiceInterface.


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