Search in sources :

Example 6 with BindAddress

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);
}
Also used : BindAddress(com.navercorp.pinpoint.collector.receiver.BindAddress) Bean(org.springframework.context.annotation.Bean)

Example 7 with BindAddress

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);
}
Also used : BindAddress(com.navercorp.pinpoint.collector.receiver.BindAddress) Bean(org.springframework.context.annotation.Bean)

Example 8 with BindAddress

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());
}
Also used : BindAddress(com.navercorp.pinpoint.collector.receiver.BindAddress) Test(org.junit.Test)

Example 9 with BindAddress

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());
}
Also used : BindAddress(com.navercorp.pinpoint.collector.receiver.BindAddress) Test(org.junit.Test)

Example 10 with BindAddress

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());
}
Also used : BindAddress(com.navercorp.pinpoint.collector.receiver.BindAddress) ExecutorConfiguration(com.navercorp.pinpoint.collector.config.ExecutorConfiguration) Test(org.junit.Test)

Aggregations

BindAddress (com.navercorp.pinpoint.collector.receiver.BindAddress)10 Bean (org.springframework.context.annotation.Bean)6 ExecutorConfiguration (com.navercorp.pinpoint.collector.config.ExecutorConfiguration)4 Test (org.junit.Test)4 ServerOption (com.navercorp.pinpoint.grpc.server.ServerOption)3