use of com.navercorp.pinpoint.collector.receiver.BindAddress 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.receiver.BindAddress in project pinpoint by naver.
the class GrpcSpanSslReceiverConfigurationTest method properties.
@Test
public void properties() {
assertEquals(Boolean.TRUE, configuration.isEnable());
BindAddress bindAddress = configuration.getBindAddress();
assertEquals("3.3.3.3", bindAddress.getIp());
assertEquals(39443, bindAddress.getPort());
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress in project pinpoint by naver.
the class GrpcAgentDataSslReceiverConfigurationFactory method newAgentReceiverConfig.
@Bean(AGENT_SSL_CONFIG)
public GrpcSslReceiverConfiguration newAgentReceiverConfig(Environment environment) throws Exception {
boolean enable = environment.getProperty("collector.receiver.grpc.agent.ssl.enable", boolean.class, false);
BindAddress bindAddress = newBindAddressBuilder().build();
GrpcSslConfiguration grpcSslConfiguration = newGrpcSslConfigurationBuilder().build();
return new GrpcSslReceiverConfiguration(enable, bindAddress, grpcSslConfiguration);
}
use of com.navercorp.pinpoint.collector.receiver.BindAddress 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.receiver.BindAddress 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);
}
Aggregations