use of com.navercorp.pinpoint.collector.config.ExecutorConfiguration in project pinpoint by naver.
the class GrpcStatReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean("grpcStatReceiverConfig")
public GrpcStatReceiverConfiguration newAgentReceiverConfig(Environment environment) {
boolean enable = environment.getProperty("collector.receiver.grpc.stat.enable", boolean.class, false);
ServerOption serverOption = newServerOption().build();
BindAddress bindAddress = newBindAddressBuilder().build();
ExecutorConfiguration serverExecutor = newServerExecutorBuilder().build();
ExecutorConfiguration workerExecutor = newWorkerExecutorBuilder().build();
GrpcStreamConfiguration streamConfiguration = newStreamConfigurationBuilder().build();
return new GrpcStatReceiverConfiguration(enable, bindAddress, serverExecutor, workerExecutor, serverOption, streamConfiguration);
}
use of com.navercorp.pinpoint.collector.config.ExecutorConfiguration in project pinpoint by naver.
the class GrpcSpanReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean("grpcSpanReceiverConfig")
public GrpcSpanReceiverConfiguration newAgentReceiverConfig(Environment environment) {
boolean enable = environment.getProperty("collector.receiver.grpc.span.enable", boolean.class, false);
ServerOption serverOption = newServerOption().build();
BindAddress bindAddress = newBindAddressBuilder().build();
ExecutorConfiguration serverExecutor = newServerExecutorBuilder().build();
ExecutorConfiguration workerExecutor = newWorkerExecutorBuilder().build();
GrpcStreamConfiguration streamConfiguration = newStreamConfigurationBuilder().build();
return new GrpcSpanReceiverConfiguration(enable, bindAddress, serverExecutor, workerExecutor, serverOption, streamConfiguration);
}
use of com.navercorp.pinpoint.collector.config.ExecutorConfiguration in project pinpoint by naver.
the class GrpcAgentDataReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean("grpcAgentReceiverConfig")
public GrpcAgentDataReceiverConfiguration newAgentReceiverConfig(Environment environment) {
boolean enable = environment.getProperty("collector.receiver.grpc.agent.enable", boolean.class, false);
ServerOption serverOption = newServerOption().build();
BindAddress bindAddress = newBindAddressBuilder().build();
ExecutorConfiguration serverExecutor = newServerExecutorBuilder().build();
ExecutorConfiguration workerExecutor = newWorkerExecutorBuilder().build();
return new GrpcAgentDataReceiverConfiguration(enable, bindAddress, serverExecutor, workerExecutor, serverOption);
}
use of com.navercorp.pinpoint.collector.config.ExecutorConfiguration in project pinpoint by naver.
the class GrpcAgentDataReceiverConfigurationTest method properties.
@Test
public void properties() {
assertEquals(Boolean.FALSE, configuration.isEnable());
BindAddress bindAddress = configuration.getBindAddress();
assertEquals("1.1.1.1", bindAddress.getIp());
assertEquals(1, bindAddress.getPort());
ExecutorConfiguration serverExecutor = configuration.getServerExecutor();
assertEquals(10, serverExecutor.getThreadSize());
assertEquals(11, serverExecutor.getQueueSize());
ExecutorConfiguration workerExecutor = configuration.getWorkerExecutor();
assertEquals(20, workerExecutor.getThreadSize());
assertEquals(21, workerExecutor.getQueueSize());
assertEquals(Boolean.FALSE, workerExecutor.isMonitorEnable());
}
Aggregations