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 | 2079 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() local 2080 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() 2084 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWithoutPendingResolverBackoff() 2098 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWhenChannelShutdown() local 2099 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWhenChannelShutdown() 2112 FakeNameResolverFactory.FakeNameResolver nameResolver = nameResolverFactory.resolvers.get(0); in resetConnectBackoff_noOpWhenNameResolverNotStarted() local 2113 assertEquals(0, nameResolver.refreshCalled); in resetConnectBackoff_noOpWhenNameResolverNotStarted()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ManagedChannelImpl.java | 154 private NameResolver nameResolver; field in ManagedChannelImpl 293 checkState(nameResolver != null, "nameResolver is null"); in shutdownNameResolverAndLoadBalancer() 296 if (nameResolver != null) { in shutdownNameResolverAndLoadBalancer() 298 nameResolver.shutdown(); in shutdownNameResolverAndLoadBalancer() 299 nameResolver = null; in shutdownNameResolverAndLoadBalancer() 332 lbHelper = new LbHelperImpl(nameResolver); in exitIdleMode() 337 nameResolver.start(listener); in exitIdleMode() 353 nameResolver = getNameResolver(target, nameResolverFactory, nameResolverParams); in enterIdleMode() 396 if (nameResolver != null) { in run() 397 nameResolver.refresh(); in run() [all …]
|