use of com.navercorp.pinpoint.collector.receiver.BindAddress in project pinpoint by naver.
the class GrpcSpanSslReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean(SPAN_SSL_CONFIG)
public GrpcSslReceiverConfiguration newAgentReceiverConfig(Environment environment, @Qualifier(GrpcAgentDataSslReceiverConfigurationFactory.SSL) GrpcSslConfiguration.Builder sslConfigurationBuilder) throws Exception {
boolean enable = environment.getProperty("collector.receiver.grpc.span.ssl.enable", boolean.class, false);
BindAddress bindAddress = newBindAddressBuilder().build();
GrpcSslConfiguration grpcSslConfiguration = sslConfigurationBuilder.build();
return new GrpcSslReceiverConfiguration(enable, bindAddress, grpcSslConfiguration);
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress in project pinpoint by naver.
the class GrpcStatSslReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean(STAT_SSL_CONFIG)
public GrpcSslReceiverConfiguration newAgentReceiverConfig(Environment environment, @Qualifier(GrpcAgentDataSslReceiverConfigurationFactory.SSL) GrpcSslConfiguration.Builder sslConfigurationBuilder) throws Exception {
boolean enable = environment.getProperty("collector.receiver.grpc.stat.ssl.enable", boolean.class, false);
BindAddress bindAddress = newBindAddressBuilder().build();
GrpcSslConfiguration grpcSslConfiguration = sslConfigurationBuilder.build();
return new GrpcSslReceiverConfiguration(enable, bindAddress, grpcSslConfiguration);
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress in project pinpoint by naver.
the class GrpcAgentDataSslReceiverConfigurationTest method properties.
@Test
public void properties() {
assertEquals(Boolean.TRUE, configuration.isEnable());
BindAddress bindAddress = configuration.getBindAddress();
assertEquals("1.1.1.1", bindAddress.getIp());
assertEquals(19441, bindAddress.getPort());
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress in project pinpoint by naver.
the class GrpcStatSslReceiverConfigurationTest method properties.
@Test
public void properties() {
assertEquals(Boolean.FALSE, configuration.isEnable());
BindAddress bindAddress = configuration.getBindAddress();
assertEquals("2.2.2.2", bindAddress.getIp());
assertEquals(29442, bindAddress.getPort());
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress 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