use of com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory in project pinpoint by naver.
the class SpanClientFactoryProvider method get.
public PinpointClientFactory get() {
if (!"TCP".equalsIgnoreCase(thriftTransportConfig.getSpanDataSenderTransportType())) {
return null;
}
PinpointClientFactory pinpointClientFactory = new DefaultPinpointClientFactory(channelFactoryProvider.get(), spanStatConnectTimer.get());
pinpointClientFactory.setWriteTimeoutMillis(1000 * 3);
pinpointClientFactory.setRequestTimeoutMillis(1000 * 5);
int writeBufferHighWaterMark = getByteSize(thriftTransportConfig.getSpanDataSenderWriteBufferHighWaterMark(), ByteSizeUnit.MEGA_BYTES.toBytesSizeAsInt(16));
int writeBufferLowWaterMark = getByteSize(thriftTransportConfig.getSpanDataSenderWriteBufferLowWaterMark(), ByteSizeUnit.MEGA_BYTES.toBytesSizeAsInt(8));
if (writeBufferLowWaterMark > writeBufferHighWaterMark) {
logger.warn("must be writeBufferHighWaterMark({}) >= writeBufferLowWaterMark({})", writeBufferHighWaterMark, writeBufferLowWaterMark);
writeBufferLowWaterMark = writeBufferHighWaterMark;
}
pinpointClientFactory.setWriteBufferHighWaterMark(writeBufferHighWaterMark);
pinpointClientFactory.setWriteBufferLowWaterMark(writeBufferLowWaterMark);
return pinpointClientFactory;
}
use of com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory in project pinpoint by naver.
the class PinpointRPCTestUtils method createClientFactory.
public static DefaultPinpointClientFactory createClientFactory(Map<String, Object> param, MessageListener messageListener) {
DefaultPinpointClientFactory clientFactory = new DefaultPinpointClientFactory();
clientFactory.setConnectTimeout(100);
clientFactory.setProperties(param);
clientFactory.addStateChangeEventListener(LoggingStateChangeEventListener.INSTANCE);
if (messageListener != null) {
clientFactory.setMessageListener(messageListener);
}
return clientFactory;
}
use of com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory in project pinpoint by naver.
the class TcpDataSenderReconnectTest method createPinpointClientFactory.
private PinpointClientFactory createPinpointClientFactory() {
PinpointClientFactory clientFactory = new DefaultPinpointClientFactory();
clientFactory.setWriteTimeoutMillis(1000 * 3);
clientFactory.setRequestTimeoutMillis(1000 * 5);
clientFactory.setProperties(Collections.<String, Object>emptyMap());
return clientFactory;
}
use of com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory in project pinpoint by naver.
the class TcpDataSenderTest method createPinpointClientFactory.
private PinpointClientFactory createPinpointClientFactory() {
PinpointClientFactory clientFactory = new DefaultPinpointClientFactory();
clientFactory.setWriteTimeoutMillis(1000 * 3);
clientFactory.setRequestTimeoutMillis(1000 * 5);
clientFactory.setProperties(Collections.<String, Object>emptyMap());
return clientFactory;
}
use of com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory in project pinpoint by naver.
the class StreamChannelManagerTest method createSocketFactory.
private PinpointClientFactory createSocketFactory(MessageListener messageListener, ServerStreamChannelMessageListener serverStreamChannelMessageListener) {
PinpointClientFactory clientFactory = new DefaultPinpointClientFactory();
clientFactory.setMessageListener(messageListener);
clientFactory.setServerStreamChannelMessageListener(serverStreamChannelMessageListener);
return clientFactory;
}
Aggregations