@Test public void testChannelConfigurationWithHost() { GrpcChannelDescriptor cfg = GrpcChannelDescriptor.builder().host("abc.com").build(); assertThat(cfg.host(), equalTo("abc.com")); assertThat(cfg.port(), equalTo(DEFAULT_PORT)); assertThat(cfg.tlsDescriptor().isPresent(), is(false)); assertThat(cfg.target().isPresent(), is(false)); assertThat(cfg.loadBalancerPolicy().isPresent(), is(false)); assertThat(cfg.nameResolverFactory().isPresent(), is(false)); }
public static GrpcChannelsProvider.Builder builder() { return builder(null); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); static GrpcChannelsProvider create(); static GrpcChannelsProvider create(Config config); static GrpcChannelsProvider.Builder builder(); static GrpcChannelsProvider.Builder builder(Config config); ManagedChannel channel(String name); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); static GrpcChannelsProvider create(); static GrpcChannelsProvider create(Config config); static GrpcChannelsProvider.Builder builder(); static GrpcChannelsProvider.Builder builder(Config config); ManagedChannel channel(String name); static final String DEFAULT_CHANNEL_NAME; static final String DEFAULT_HOST; static final String CFG_KEY_CHANNELS; static final int DEFAULT_PORT; }