Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::ChildPolicyHandler::Helper Class Reference
Inheritance diagram for grpc_core::ChildPolicyHandler::Helper:
Inheritance graph
[legend]

Public Member Functions

void AddTraceEvent (TraceSeverity severity, absl::string_view message) override
 
RefCountedPtr< SubchannelInterfaceCreateSubchannel (ServerAddress address, const grpc_channel_args &args) override
 Creates a new subchannel with the specified channel args. More...
 
absl::string_view GetAuthority () override
 Returns the channel authority. More...
 
 Helper (RefCountedPtr< ChildPolicyHandler > parent)
 
void RequestReresolution () override
 Requests that the resolver re-resolve. More...
 
void set_child (LoadBalancingPolicy *child)
 
void UpdateState (grpc_connectivity_state state, const absl::Status &status, std::unique_ptr< SubchannelPicker > picker) override
 
 ~Helper () override
 
- Public Member Functions inherited from grpc_core::LoadBalancingPolicy::ChannelControlHelper
 ChannelControlHelper ()=default
 
virtual ~ChannelControlHelper ()=default
 

Private Member Functions

bool CalledByCurrentChild () const
 
bool CalledByPendingChild () const
 

Private Attributes

LoadBalancingPolicychild_ = nullptr
 
RefCountedPtr< ChildPolicyHandlerparent_
 

Additional Inherited Members

- Public Types inherited from grpc_core::LoadBalancingPolicy::ChannelControlHelper
enum  TraceSeverity { TRACE_INFO, TRACE_WARNING, TRACE_ERROR }
 Adds a trace message associated with the channel. More...
 

Detailed Description

Definition at line 45 of file child_policy_handler.cc.

Constructor & Destructor Documentation

◆ Helper()

grpc_core::ChildPolicyHandler::Helper::Helper ( RefCountedPtr< ChildPolicyHandler parent)
inlineexplicit

Definition at line 48 of file child_policy_handler.cc.

◆ ~Helper()

grpc_core::ChildPolicyHandler::Helper::~Helper ( )
inlineoverride

Definition at line 51 of file child_policy_handler.cc.

Member Function Documentation

◆ AddTraceEvent()

void grpc_core::ChildPolicyHandler::Helper::AddTraceEvent ( TraceSeverity  severity,
absl::string_view  message 
)
inlineoverridevirtual

◆ CalledByCurrentChild()

bool grpc_core::ChildPolicyHandler::Helper::CalledByCurrentChild ( ) const
inlineprivate

Definition at line 124 of file child_policy_handler.cc.

◆ CalledByPendingChild()

bool grpc_core::ChildPolicyHandler::Helper::CalledByPendingChild ( ) const
inlineprivate

Definition at line 119 of file child_policy_handler.cc.

◆ CreateSubchannel()

RefCountedPtr<SubchannelInterface> grpc_core::ChildPolicyHandler::Helper::CreateSubchannel ( ServerAddress  address,
const grpc_channel_args args 
)
inlineoverridevirtual

Creates a new subchannel with the specified channel args.

Implements grpc_core::LoadBalancingPolicy::ChannelControlHelper.

Definition at line 53 of file child_policy_handler.cc.

◆ GetAuthority()

absl::string_view grpc_core::ChildPolicyHandler::Helper::GetAuthority ( )
inlineoverridevirtual

Returns the channel authority.

Implements grpc_core::LoadBalancingPolicy::ChannelControlHelper.

Definition at line 105 of file child_policy_handler.cc.

◆ RequestReresolution()

void grpc_core::ChildPolicyHandler::Helper::RequestReresolution ( )
inlineoverridevirtual

Requests that the resolver re-resolve.

Implements grpc_core::LoadBalancingPolicy::ChannelControlHelper.

Definition at line 88 of file child_policy_handler.cc.

◆ set_child()

void grpc_core::ChildPolicyHandler::Helper::set_child ( LoadBalancingPolicy child)
inline

Definition at line 116 of file child_policy_handler.cc.

◆ UpdateState()

void grpc_core::ChildPolicyHandler::Helper::UpdateState ( grpc_connectivity_state  state,
const absl::Status status,
std::unique_ptr< SubchannelPicker  
)
inlineoverridevirtual

Sets the connectivity state and returns a new picker to be used by the client channel.

Implements grpc_core::LoadBalancingPolicy::ChannelControlHelper.

Definition at line 61 of file child_policy_handler.cc.

Member Data Documentation

◆ child_

LoadBalancingPolicy* grpc_core::ChildPolicyHandler::Helper::child_ = nullptr
private

Definition at line 130 of file child_policy_handler.cc.

◆ parent_

RefCountedPtr<ChildPolicyHandler> grpc_core::ChildPolicyHandler::Helper::parent_
private

Definition at line 127 of file child_policy_handler.cc.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:35