use of com.navercorp.pinpoint.profiler.sender.ThriftMessageSerializer in project pinpoint by naver.
the class TcpDataSenderProvider method get.
@Override
public EnhancedDataSender<MetaDataType> get() {
PinpointClientFactory clientFactory = clientFactoryProvider.get();
String collectorTcpServerIp = thriftTransportConfig.getCollectorTcpServerIp();
int collectorTcpServerPort = thriftTransportConfig.getCollectorTcpServerPort();
HeaderTBaseSerializer headerTBaseSerializer = tBaseSerializerProvider.get();
MessageSerializer<MetaDataType, byte[]> messageSerializer = new ThriftMessageSerializer<>(messageConverter, headerTBaseSerializer);
return new TcpDataSender<>("Default", collectorTcpServerIp, collectorTcpServerPort, clientFactory, messageSerializer);
}
use of com.navercorp.pinpoint.profiler.sender.ThriftMessageSerializer 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.ThriftMessageSerializer 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