use of com.navercorp.pinpoint.collector.config.CollectorConfiguration in project pinpoint by naver.
the class GrpcAgentUriStatHandlerV2Test method createMockHandler.
private GrpcAgentStatHandlerV2 createMockHandler(AgentUriStatService agentUriStatService, boolean enableUriStat) {
GrpcAgentStatMapper mockAgentStatMapper = Mockito.mock(GrpcAgentStatMapper.class);
GrpcAgentStatBatchMapper agentStatBatchMapper = new GrpcAgentStatBatchMapper(mockAgentStatMapper);
AgentStatService[] agentStatServices = new AgentStatService[0];
CollectorConfiguration collectorConfiguration = Mockito.mock(CollectorConfiguration.class);
Mockito.when(collectorConfiguration.isUriStatEnable()).thenReturn(enableUriStat);
return new GrpcAgentStatHandlerV2(mockAgentStatMapper, agentStatBatchMapper, new GrpcAgentUriStatMapper(), agentStatServices, agentUriStatService, collectorConfiguration);
}
use of com.navercorp.pinpoint.collector.config.CollectorConfiguration in project pinpoint by naver.
the class TCPReceiverTest method createConfiguration.
private CollectorConfiguration createConfiguration() {
CollectorConfiguration configuration = new CollectorConfiguration();
configuration.setTcpListenIp("0.0.0.0");
final int availableTcpPort = SocketUtils.findAvailableTcpPort(19099);
configuration.setTcpListenPort(availableTcpPort);
configuration.setTcpWorkerThread(8);
configuration.setTcpWorkerQueueSize(1024);
return configuration;
}
Aggregations