aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/server.h
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-12-01 15:09:28 -0800
committerGravatar yang-g <yangg@google.com>2016-12-27 15:37:59 -0800
commit8d668d8324c3aa24353b3774a8f6ce35edbf20b7 (patch)
tree5b644a8a064ba0e496b121dc6769d1f2f4a4a0df /include/grpc++/server.h
parent64868839401b48a68afca187b28bc772043a2e1b (diff)
default service
Diffstat (limited to 'include/grpc++/server.h')
-rw-r--r--include/grpc++/server.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index fba9952e6e..511dc35564 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -97,6 +97,11 @@ class Server final : public ServerInterface, private GrpcLibraryCodegen {
// Returns a \em raw pointer to the underlying grpc_server instance.
grpc_server* c_server();
+ /// Returns the health check service.
+ HealthCheckServiceInterface* GetHealthCheckService() const {
+ return hc_.get();
+ }
+
private:
friend class AsyncGenericService;
friend class ServerBuilder;
@@ -214,6 +219,10 @@ class Server final : public ServerInterface, private GrpcLibraryCodegen {
grpc_server* server_;
std::unique_ptr<ServerInitializer> server_initializer_;
+
+ std::unique_ptr<HealthCheckServiceInterface> health_check_service_;
+ // User explicitly disabled health check service.
+ bool health_check_service_disabled_;
};
} // namespace grpc