Package io.grpc.rls
Class LbPolicyConfiguration.ChildPolicyWrapper
- java.lang.Object
-
- io.grpc.rls.LbPolicyConfiguration.ChildPolicyWrapper
-
- Enclosing class:
- LbPolicyConfiguration
static final class LbPolicyConfiguration.ChildPolicyWrapper extends java.lang.Object
ChildPolicyWrapper is a wrapper class for child load balancing policy with associated helper / utility classes to manage the child policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper
A delegatingLoadBalancer.Helper
maintains status ofLbPolicyConfiguration.ChildPolicyWrapper
whenLoadBalancer.Subchannel
status changed.
-
Field Summary
Fields Modifier and Type Field Description private LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper
helper
private LoadBalancer
lb
private LoadBalancer.SubchannelPicker
picker
private ConnectivityState
state
private java.lang.String
target
-
Constructor Summary
Constructors Constructor Description ChildPolicyWrapper(java.lang.String target, LbPolicyConfiguration.ChildLoadBalancingPolicy childPolicy, ResolvedAddressFactory childLbResolvedAddressFactory, ChildLoadBalancerHelper.ChildLoadBalancerHelperProvider childLbHelperProvider, LbPolicyConfiguration.ChildLbStatusListener childLbStatusListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper
getHelper()
(package private) LoadBalancer.SubchannelPicker
getPicker()
ConnectivityState
getState()
(package private) java.lang.String
getTarget()
(package private) void
refreshState()
(package private) void
shutdown()
java.lang.String
toString()
-
-
-
Field Detail
-
target
private final java.lang.String target
-
helper
private final LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper helper
-
lb
private final LoadBalancer lb
-
picker
private volatile LoadBalancer.SubchannelPicker picker
-
state
private ConnectivityState state
-
-
Constructor Detail
-
ChildPolicyWrapper
public ChildPolicyWrapper(java.lang.String target, LbPolicyConfiguration.ChildLoadBalancingPolicy childPolicy, ResolvedAddressFactory childLbResolvedAddressFactory, ChildLoadBalancerHelper.ChildLoadBalancerHelperProvider childLbHelperProvider, LbPolicyConfiguration.ChildLbStatusListener childLbStatusListener)
-
-
Method Detail
-
getTarget
java.lang.String getTarget()
-
getPicker
LoadBalancer.SubchannelPicker getPicker()
-
getHelper
LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper getHelper()
-
getState
public ConnectivityState getState()
-
refreshState
void refreshState()
-
shutdown
void shutdown()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-