Home
last modified time | relevance | path

Searched refs:GrpcAttributes (Results 1 – 14 of 14) sorted by relevance

/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DGoogleDefaultProtocolNegotiator.java20 import io.grpc.internal.GrpcAttributes;
45 if (grpcHandler.getEagAttributes().get(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY) != null in newHandler()
46 || grpcHandler.getEagAttributes().get(GrpcAttributes.ATTR_LB_PROVIDED_BACKEND) != null) { in newHandler()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGrpcAttributes.java25 public final class GrpcAttributes { class
46 private GrpcAttributes() {} in GrpcAttributes() method in GrpcAttributes
DAutoConfiguredLoadBalancerFactory.java85 Map<String, Object> configMap = attributes.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG); in handleResolvedAddressGroups()
161 if (s.getAttributes().get(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY) != null) { in decideLoadBalancerFactory()
DJndiResourceResolverFactory.java154 .set(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY, record.host) in resolveSrv()
DManagedChannelImpl.java1273 config.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG); in onAddresses()
1369 config.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG)); in getThrottle()
DDnsNameResolver.java273 attrs.set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig);
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DGoogleDefaultProtocolNegotiatorTest.java26 import io.grpc.internal.GrpcAttributes;
52 Attributes.newBuilder().set(GrpcAttributes.ATTR_LB_PROVIDED_BACKEND, true).build(); in altsHandler()
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DRoundRobinLoadBalancerTest.java62 import io.grpc.internal.GrpcAttributes;
436 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickinessEnabled_withoutStickyHeader()
468 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickinessEnabled_withStickyHeader()
498 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickinessEnabled_withDifferentStickyHeaders()
543 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickiness_goToTransientFailure_pick_backToReady()
591 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickiness_goToTransientFailure_backToReady_pick()
644 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in stickiness_oneSubchannelShutdown()
700 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig1).build(); in stickiness_resolveTwice_metadataKeyChanged()
707 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig2).build(); in stickiness_resolveTwice_metadataKeyChanged()
719 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig1).build(); in stickiness_resolveTwice_metadataKeyUnChanged()
/external/grpc-grpc-java/grpclb/src/main/java/io/grpc/grpclb/
DGrpclbLoadBalancer.java30 import io.grpc.internal.GrpcAttributes;
93 String lbAddrAuthority = server.getAttributes().get(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY); in handleResolvedAddressGroups()
DGrpclbState.java46 import io.grpc.internal.GrpcAttributes;
89 Attributes.newBuilder().set(GrpcAttributes.ATTR_LB_PROVIDED_BACKEND, true).build();
751 .set(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY, authority) in flattenLbAddressGroups()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAutoConfiguredLoadBalancerFactoryTest.java141 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig) in handleResolvedAddressGroups_shutsDownOldBalancer()
207 Attributes.newBuilder().set(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY, "ok").build())); in decideLoadBalancerFactory_oneBalancer_noServiceConfig_grpclb()
222 Attributes.newBuilder().set(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY, "ok").build())); in decideLoadBalancerFactory_grpclbOverridesServiceConfig()
DManagedChannelImplTest.java2235 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, new HashMap<String, Object>()) in channelTracing_serviceConfigChange()
2261 .set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig) in channelTracing_serviceConfigChange()
2615 .newBuilder().set(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, serviceConfig).build(); in retryBackoffThenChannelShutdown_retryShouldStillHappen_newCallShouldFail()
2723 GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, in badServiceConfigIsRecoverable()
2782 GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG, in badServiceConfigIsRecoverable()
/external/grpc-grpc-java/core/src/main/java/io/grpc/util/
DRoundRobinLoadBalancerFactory.java44 import io.grpc.internal.GrpcAttributes;
137 attributes.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG); in handleResolvedAddressGroups()
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java73 import io.grpc.internal.GrpcAttributes;
138 Attributes.newBuilder().set(GrpcAttributes.ATTR_LB_PROVIDED_BACKEND, true).build();
1543 .set(GrpcAttributes.ATTR_LB_ADDR_AUTHORITY, authority) in lbAttributes()