aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-12-29 14:08:13 -0800
committerGravatar yang-g <yangg@google.com>2016-12-29 14:12:15 -0800
commitb90631d3f08aaea88345a2ce950bf16fbcb77ad0 (patch)
treea74e16a6cc3b5ac74bba13d0a7af5d27f6fa8063 /include/grpc++
parenta36ea4be8b3aa665be7b789ce4b4f97506f2ad65 (diff)
more cleanup
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/health_check_service_interface.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/grpc++/health_check_service_interface.h b/include/grpc++/health_check_service_interface.h
index 70153d65cb..0eed702683 100644
--- a/include/grpc++/health_check_service_interface.h
+++ b/include/grpc++/health_check_service_interface.h
@@ -38,26 +38,31 @@
namespace grpc {
-const char kDefaultHealthCheckServiceInterfaceArg[] =
- "grpc.default_health_check_service_interface";
+const char kHealthCheckServiceInterfaceArg[] =
+ "grpc.health_check_service_interface";
+// The gRPC server uses this interface to expose the health checking service
+// without depending on protobuf.
class HealthCheckServiceInterface {
public:
virtual ~HealthCheckServiceInterface() {}
+
+ // Set or change the serving status of the given service_name.
virtual void SetServingStatus(const grpc::string& service_name,
bool serving) = 0;
// Apply to all registered service names.
virtual void SetServingStatus(bool serving) = 0;
};
-bool DefaultHealthCheckServiceEnabled();
-
// Enable/disable the default health checking service. This applies to all C++
// servers created afterwards. For each server, user can override the default
// with a HealthCheckServiceServerBuilderOption.
// NOT thread safe.
void EnableDefaultHealthCheckService(bool enable);
+// NOT thread safe.
+bool DefaultHealthCheckServiceEnabled();
+
} // namespace grpc
#endif // GRPCXX_HEALTH_CHECK_SERVICE_INTERFACE_H