Search in sources :

Example 1 with BindAddress

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

Example 2 with BindAddress

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

Example 3 with BindAddress

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

Example 4 with BindAddress

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

Example 5 with BindAddress

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

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