/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ManagedChannelImplGetNameResolverTest.java | 97 Factory nameResolverFactory = new NameResolver.Factory() { in validTargetNoResovler() local 110 "foo.googleapis.com:8080", nameResolverFactory, NAME_RESOLVER_PARAMS); in validTargetNoResovler() 118 Factory nameResolverFactory = new FakeNameResolverFactory(expectedUri.getScheme()); in testValidTarget() local 120 target, nameResolverFactory, NAME_RESOLVER_PARAMS); in testValidTarget() 127 Factory nameResolverFactory = new FakeNameResolverFactory("dns"); in testInvalidTarget() local 131 target, nameResolverFactory, NAME_RESOLVER_PARAMS); in testInvalidTarget()
|
D | ManagedChannelImplTest.java | 260 .nameResolverFactory(new FakeNameResolverFactory.Builder(expectedUri).build()) in setUp() 286 channelBuilder.nameResolverFactory( in idleModeDisabled() 313 channelBuilder.nameResolverFactory( in shutdownWithNoTransportsEverCreated() 425 FakeNameResolverFactory nameResolverFactory = in subtestCallsAndShutdown() local 427 channelBuilder.nameResolverFactory(nameResolverFactory); in subtestCallsAndShutdown() 486 assertEquals(1, nameResolverFactory.resolvers.size()); in subtestCallsAndShutdown() 501 assertTrue(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 509 assertFalse(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 523 assertTrue(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 557 FakeNameResolverFactory nameResolverFactory = in noMoreCallbackAfterLoadBalancerShutdown() local [all …]
|
D | AbstractManagedChannelImplBuilderTest.java | 106 NameResolver.Factory nameResolverFactory = mock(NameResolver.Factory.class); in nameResolverFactory_normal() local 107 assertEquals(builder, builder.nameResolverFactory(nameResolverFactory)); in nameResolverFactory_normal() 108 assertEquals(nameResolverFactory, builder.getNameResolverFactory()); in nameResolverFactory_normal() 114 builder.nameResolverFactory(mock(NameResolver.Factory.class)); in nameResolverFactory_null() 115 assertEquals(builder, builder.nameResolverFactory(null)); in nameResolverFactory_null() 121 directAddressBuilder.nameResolverFactory(mock(NameResolver.Factory.class)); in nameResolverFactory_notAllowedWithDirectAddress()
|
D | ManagedChannelImplIdlenessTest.java | 139 .nameResolverFactory(mockNameResolverFactory) in setUp()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | AbstractManagedChannelImplBuilder.java | 103 private NameResolver.Factory nameResolverFactory = DEFAULT_NAME_RESOLVER_FACTORY; field in AbstractManagedChannelImplBuilder 196 this.nameResolverFactory = new DirectAddressNameResolverFactory(directServerAddress, authority); in AbstractManagedChannelImplBuilder() 226 public final T nameResolverFactory(NameResolver.Factory resolverFactory) { in nameResolverFactory() method in AbstractManagedChannelImplBuilder 231 this.nameResolverFactory = resolverFactory; in nameResolverFactory() 233 this.nameResolverFactory = DEFAULT_NAME_RESOLVER_FACTORY; in nameResolverFactory() 465 return nameResolverFactory; in getNameResolverFactory() 467 return new OverrideAuthorityNameResolverFactory(nameResolverFactory, authorityOverride); in getNameResolverFactory()
|
D | ManagedChannelImpl.java | 118 private final NameResolver.Factory nameResolverFactory; field in ManagedChannelImpl 353 nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in enterIdleMode() 523 this.nameResolverFactory = builder.getNameResolverFactory(); in ManagedChannelImpl() 525 this.nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in ManagedChannelImpl() 604 static NameResolver getNameResolver(String target, NameResolver.Factory nameResolverFactory, in getNameResolver() argument 620 NameResolver resolver = nameResolverFactory.newNameResolver(targetUri, nameResolverParams); in getNameResolver() 633 targetUri = new URI(nameResolverFactory.getDefaultScheme(), "", "/" + target, null); in getNameResolver() 638 NameResolver resolver = nameResolverFactory.newNameResolver(targetUri, nameResolverParams); in getNameResolver() 1236 return nameResolverFactory; in getNameResolverFactory()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | ForwardingChannelBuilder.java | 119 public T nameResolverFactory(NameResolver.Factory resolverFactory) { in nameResolverFactory() method in ForwardingChannelBuilder 120 delegate().nameResolverFactory(resolverFactory); in nameResolverFactory()
|
D | ManagedChannelBuilder.java | 215 public abstract T nameResolverFactory(NameResolver.Factory resolverFactory); in nameResolverFactory() method in ManagedChannelBuilder
|