Searched refs:nameResolver (Results 1 – 5 of 5) sorted by relevance
/external/apache-http/src/org/apache/http/conn/scheme/ |
D | PlainSocketFactory.java | 63 private final HostNameResolver nameResolver; field in PlainSocketFactory 73 public PlainSocketFactory(final HostNameResolver nameResolver) { in PlainSocketFactory() argument 75 this.nameResolver = nameResolver; in PlainSocketFactory() 118 if (this.nameResolver != null) { in connectSocket() 119 remoteAddress = new InetSocketAddress(this.nameResolver.resolve(host), port); in connectSocket()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ManagedChannelImplGetNameResolverTest.java | 119 FakeNameResolver nameResolver = (FakeNameResolver) ManagedChannelImpl.getNameResolver( in testValidTarget() local 121 assertNotNull(nameResolver); in testValidTarget() 122 assertEquals(expectedUri, nameResolver.uri); in testValidTarget() 123 assertEquals(expectedUriString, nameResolver.uri.toString()); in testValidTarget() 130 FakeNameResolver nameResolver = (FakeNameResolver) ManagedChannelImpl.getNameResolver( in testInvalidTarget() local 132 fail("Should have failed, but got resolver with " + nameResolver.uri); in testInvalidTarget()
|
D | OverrideAuthorityNameResolverTest.java | 45 NameResolver nameResolver = factory.newNameResolver(URI.create("dns:///localhost:443"), in overridesAuthority() local 47 assertNotNull(nameResolver); in overridesAuthority() 48 assertEquals(override, nameResolver.getServiceAuthority()); in overridesAuthority()
|
D | ManagedChannelImplTest.java | 2078 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() local 2079 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() 2083 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() 2097 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWhenChannelShutdown() local 2098 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWhenChannelShutdown() 2111 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWhenNameResolverNotStarted() local 2112 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWhenNameResolverNotStarted()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ManagedChannelImpl.java | 160 private NameResolver nameResolver; field in ManagedChannelImpl 338 checkState(nameResolver != null, "nameResolver is null"); in shutdownNameResolverAndLoadBalancer() 341 if (nameResolver != null) { in shutdownNameResolverAndLoadBalancer() 343 nameResolver.shutdown(); in shutdownNameResolverAndLoadBalancer() 344 nameResolver = null; in shutdownNameResolverAndLoadBalancer() 377 lbHelper = new LbHelperImpl(nameResolver); in exitIdleMode() 382 nameResolver.start(listener); in exitIdleMode() 398 nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in enterIdleMode() 441 if (nameResolver != null) { in run() 442 nameResolver.refresh(); in run() [all …]
|