aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/channel.h
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-11-09 14:40:22 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-11-09 14:40:22 -0800
commit4bbdda4444d740c50774218427a319931e402fe2 (patch)
tree15abfda668363f0bd00b674413a794969fd60099 /include/grpc++/channel.h
parentc625c7a023cb688a135be96cef64543f0e08a851 (diff)
Allow getting LB policy name and service config in C++ API.
Diffstat (limited to 'include/grpc++/channel.h')
-rw-r--r--include/grpc++/channel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/grpc++/channel.h b/include/grpc++/channel.h
index c8360282e7..ca269be218 100644
--- a/include/grpc++/channel.h
+++ b/include/grpc++/channel.h
@@ -57,6 +57,13 @@ class Channel final : public ChannelInterface,
/// \a try_to_connect is set to true, try to connect.
grpc_connectivity_state GetState(bool try_to_connect) override;
+ /// Returns the LB policy name, or the empty string if not yet available.
+ grpc::string GetLoadBalancingPolicyName() const;
+
+ /// Returns the service config in JSON form, or the empty string if
+ /// not available.
+ grpc::string GetServiceConfigJSON() const;
+
private:
template <class InputMessage, class OutputMessage>
friend Status BlockingUnaryCall(ChannelInterface* channel,