use of com.navercorp.pinpoint.profiler.sender.grpc.StatGrpcDataSender in project pinpoint by naver.
the class StatGrpcDataSenderProvider method get.
@Override
public DataSender<MetricType> get() {
final String collectorIp = grpcTransportConfig.getStatCollectorIp();
final int collectorPort = grpcTransportConfig.getStatCollectorPort();
final boolean sslEnable = grpcTransportConfig.isStatSslEnable();
final int senderExecutorQueueSize = grpcTransportConfig.getStatSenderExecutorQueueSize();
final ChannelFactoryBuilder channelFactoryBuilder = newChannelFactoryBuilder(sslEnable);
final ChannelFactory channelFactory = channelFactoryBuilder.build();
// not singleton
ReconnectExecutor reconnectExecutor = reconnectExecutorProvider.get();
return new StatGrpcDataSender(collectorIp, collectorPort, senderExecutorQueueSize, messageConverter, reconnectExecutor, channelFactory);
}
Aggregations