GRPC C++  1.39.1
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 std::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 std::string &service_name) const
 
HealthCheckServiceImplGetHealthCheckService (std::unique_ptr< ServerCompletionQueue > cq)
 
- Public Member Functions inherited from grpc::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 std::string &  service_name) const

◆ SetServingStatus() [1/2]

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

Apply to all registered service names.

Implements grpc::HealthCheckServiceInterface.

◆ SetServingStatus() [2/2]

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

Set or change the serving status of the given service_name.

Implements grpc::HealthCheckServiceInterface.

◆ Shutdown()

void grpc::DefaultHealthCheckService::Shutdown ( )
overridevirtual

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

Reimplemented from grpc::HealthCheckServiceInterface.


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