use of com.navercorp.pinpoint.grpc.client.ChannelFactory in project pinpoint by naver.
the class MetadataGrpcDataSenderProvider method get.
@Override
public EnhancedDataSender<MetaDataType> get() {
final String collectorIp = grpcTransportConfig.getMetadataCollectorIp();
final int collectorPort = grpcTransportConfig.getMetadataCollectorPort();
final boolean sslEnable = grpcTransportConfig.isMetadataSslEnable();
final int senderExecutorQueueSize = grpcTransportConfig.getMetadataSenderExecutorQueueSize();
final ChannelFactoryBuilder channelFactoryBuilder = newChannelFactoryBuilder(sslEnable);
final ChannelFactory channelFactory = channelFactoryBuilder.build();
final int retryMaxCount = grpcTransportConfig.getMetadataRetryMaxCount();
final int retryDelayMillis = grpcTransportConfig.getMetadataRetryDelayMillis();
return new MetadataGrpcDataSender<>(collectorIp, collectorPort, senderExecutorQueueSize, messageConverter, channelFactory, retryMaxCount, retryDelayMillis);
}
use of com.navercorp.pinpoint.grpc.client.ChannelFactory 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