use of com.navercorp.pinpoint.profiler.sender.UdpDataSenderFactory in project pinpoint by naver.
the class SpanDataSenderProvider method get.
@Override
public DataSender<SpanType> get() {
if ("TCP".equalsIgnoreCase(transportType)) {
if ("OIO".equalsIgnoreCase(ioType)) {
logger.warn("TCP transport not support OIO type.(only support NIO)");
}
PinpointClientFactory pinpointClientFactory = clientFactoryProvider.get();
MessageSerializer<SpanType, byte[]> messageSerializer = new ThriftMessageSerializer<>(messageConverter);
return new TcpDataSender<>("SpanDataSender", ip, port, pinpointClientFactory, messageSerializer, writeQueueSize);
} else {
UdpDataSenderFactory<SpanType> factory = new UdpDataSenderFactory<>(ip, port, UDP_EXECUTOR_NAME, writeQueueSize, timeout, sendBufferSize, messageConverter);
return factory.create(ioType);
}
}
use of com.navercorp.pinpoint.profiler.sender.UdpDataSenderFactory in project pinpoint by naver.
the class StatDataSenderProvider method get.
@Override
public DataSender<MetricType> get() {
if ("TCP".equalsIgnoreCase(transportType)) {
if ("OIO".equalsIgnoreCase(ioType)) {
logger.warn("TCP transport not support OIO type.(only support NIO)");
}
PinpointClientFactory pinpointClientFactory = clientFactoryProvider.get();
MessageSerializer<MetricType, byte[]> messageSerializer = new ThriftMessageSerializer<>(messageConverter);
return new TcpDataSender<>("StatDataSender", ip, port, pinpointClientFactory, messageSerializer, writeQueueSize);
} else {
UdpDataSenderFactory<MetricType> factory = new UdpDataSenderFactory<>(ip, port, UDP_EXECUTOR_NAME, writeQueueSize, timeout, sendBufferSize, messageConverter);
return factory.create(ioType);
}
}
Aggregations