Search in sources :

Example 1 with PinpointDnsNameResolverProvider

use of io.grpc.internal.PinpointDnsNameResolverProvider in project pinpoint by naver.

the class ChannelFactoryTest method setUp.

@BeforeClass
public static void setUp() throws Exception {
    dnsExecutorService = newCachedExecutorService("dnsExecutor");
    nameResolverProvider = new PinpointDnsNameResolverProvider("dnsExecutor", dnsExecutorService);
    executorService = Executors.newCachedThreadPool(PinpointThreadFactory.createThreadFactory("test-executor"));
    server = serverStart(executorService);
    server.start();
}
Also used : PinpointDnsNameResolverProvider(io.grpc.internal.PinpointDnsNameResolverProvider) BeforeClass(org.junit.BeforeClass)

Example 2 with PinpointDnsNameResolverProvider

use of io.grpc.internal.PinpointDnsNameResolverProvider in project pinpoint by naver.

the class GrpcNameResolverProvider method get.

@Override
public NameResolverProvider get() {
    ExecutorService executorService = dnsExecutorService.get();
    NameResolverProvider nameResolverProvider = new PinpointDnsNameResolverProvider("pinpoint-dns", executorService);
    return nameResolverProvider;
}
Also used : ExecutorService(java.util.concurrent.ExecutorService) PinpointDnsNameResolverProvider(io.grpc.internal.PinpointDnsNameResolverProvider) NameResolverProvider(io.grpc.NameResolverProvider) PinpointDnsNameResolverProvider(io.grpc.internal.PinpointDnsNameResolverProvider)

Aggregations

PinpointDnsNameResolverProvider (io.grpc.internal.PinpointDnsNameResolverProvider)2 NameResolverProvider (io.grpc.NameResolverProvider)1 ExecutorService (java.util.concurrent.ExecutorService)1 BeforeClass (org.junit.BeforeClass)1