/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ManagedChannelImplTest.java | 261 .nameResolverFactory(new FakeNameResolverFactory.Builder(expectedUri).build()) in setUp() 287 channelBuilder.nameResolverFactory( in idleModeDisabled() 314 channelBuilder.nameResolverFactory( in shutdownWithNoTransportsEverCreated() 426 FakeNameResolverFactory nameResolverFactory = in subtestCallsAndShutdown() local 428 channelBuilder.nameResolverFactory(nameResolverFactory); in subtestCallsAndShutdown() 487 assertEquals(1, nameResolverFactory.resolvers.size()); in subtestCallsAndShutdown() 502 assertTrue(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 510 assertFalse(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 524 assertTrue(nameResolverFactory.resolvers.get(0).shutdown); in subtestCallsAndShutdown() 558 FakeNameResolverFactory nameResolverFactory = in noMoreCallbackAfterLoadBalancerShutdown() local [all …]
|
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 | 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 398 nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in enterIdleMode() 552 this.nameResolverFactory = builder.getNameResolverFactory(); in ManagedChannelImpl() 554 this.nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in ManagedChannelImpl() 631 static NameResolver getNameResolver(String target, NameResolver.Factory nameResolverFactory, in getNameResolver() argument 647 NameResolver resolver = nameResolverFactory.newNameResolver(targetUri, nameResolverParams); in getNameResolver() 660 targetUri = new URI(nameResolverFactory.getDefaultScheme(), "", "/" + target, null); in getNameResolver() 665 NameResolver resolver = nameResolverFactory.newNameResolver(targetUri, nameResolverParams); in getNameResolver() 1237 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
|