public static TransportClient newTcpDiscoveryClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, EurekaClientMetricFactory metricFactory) { return new TcpDiscoveryClient(clientId, config, resolver, metricFactory.getDiscoveryServerConnectionMetrics()); }
@Override public RegistrationChannel newChannel() { RegistrationChannel baseChannel = new RegistrationChannelImpl(transport, metricFactory.getRegistrationChannelMetrics()); return new RegistrationChannelInvoker(baseChannel, metricFactory.getSerializedTaskInvokerMetrics(RegistrationChannelInvoker.class)); }
public static TransportClient newTcpRegistrationClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, EurekaClientMetricFactory metricFactory) { return new TcpRegistrationClient(clientId, config, resolver, metricFactory.getRegistrationServerConnectionMetrics()); } }
public CLIENT build() { if (transportConfig == null) { transportConfig = new BasicEurekaTransportConfig.Builder().build(); } if (registryConfig == null) { registryConfig = new BasicEurekaRegistryConfig.Builder().build(); } if (clientMetricFactory == null) { clientMetricFactory = EurekaClientMetricFactory.clientMetrics(); } if (registryMetricFactory == null) { registryMetricFactory = EurekaRegistryMetricFactory.registryMetrics(); } return buildClient(); }
public InterestChannelInvoker(InterestChannel delegate, EurekaClientMetricFactory metricFactory, Scheduler scheduler) { super(metricFactory.getSerializedTaskInvokerMetrics(InterestChannelInvoker.class), scheduler); this.delegate = delegate; }
@Override public InterestChannel newChannel() { InterestChannel baseChannel = new InterestChannelImpl(eurekaRegistry, remoteBatchingRegistry, transport, metricFactory.getInterestChannelMetrics()); return new InterestChannelInvoker(baseChannel, metricFactory); }
registry, remoteBatchingRegistry, clientMetrics() );