diff options
author | ncteisen <ncteisen@gmail.com> | 2018-08-03 11:24:18 -0400 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-08-03 11:24:18 -0400 |
commit | 0db2b830eb95c12975cb69b945f837194f38d96c (patch) | |
tree | 2886d6fd66ed79a4371d92c4fd12408ccb665b12 /src/core/ext/filters/client_channel/client_channel_channelz.h | |
parent | fde951db9c6f87597faa7ae1b3d0f521ff1adb51 (diff) |
Refactor rendering to use template method pattern
Diffstat (limited to 'src/core/ext/filters/client_channel/client_channel_channelz.h')
-rw-r--r-- | src/core/ext/filters/client_channel/client_channel_channelz.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/ext/filters/client_channel/client_channel_channelz.h b/src/core/ext/filters/client_channel/client_channel_channelz.h index 9a3fc1d6f1..a9e98deedb 100644 --- a/src/core/ext/filters/client_channel/client_channel_channelz.h +++ b/src/core/ext/filters/client_channel/client_channel_channelz.h @@ -50,7 +50,10 @@ class ClientChannelNode : public ChannelNode { bool is_top_level_channel); virtual ~ClientChannelNode() {} - grpc_json* RenderJson() override; + // Overriding template methods from ChannelNode to render information that + // only ClientChannelNode knows about. + void PopulateConnectivityState(grpc_json* json) override; + void PopulateChildRefs(grpc_json* json) override; // Helper to create a channel arg to ensure this type of ChannelNode is // created. @@ -58,10 +61,6 @@ class ClientChannelNode : public ChannelNode { private: grpc_channel_element* client_channel_; - - // helpers - void PopulateConnectivityState(grpc_json* json); - void PopulateChildRefs(grpc_json* json); }; // Handles channelz bookkeeping for sockets |