Search in sources :

Example 6 with ServerOption

use of com.navercorp.pinpoint.grpc.server.ServerOption in project pinpoint by naver.

the class GrpcStatReceiverConfigurationTest method serverOption.

@Test
public void serverOption() {
    ServerOption serverOption = configuration.getServerOption();
    assertEquals(2, serverOption.getKeepAliveTime());
    assertEquals(2, serverOption.getKeepAliveTimeout());
    assertEquals(2, serverOption.getPermitKeepAliveTime());
    assertEquals(2, serverOption.getMaxConnectionIdle());
    assertEquals(2, serverOption.getMaxConcurrentCallsPerConnection());
    // 2M
    assertEquals(2 * 1024 * 1024, serverOption.getMaxInboundMessageSize());
    // 2K
    assertEquals(2 * 1024, serverOption.getMaxHeaderListSize());
    // 2M
    assertEquals(2 * 1024 * 1024, serverOption.getFlowControlWindow());
    assertEquals(2, serverOption.getHandshakeTimeout());
    // 2M
    assertEquals(2 * 1024 * 1024, serverOption.getReceiveBufferSize());
}
Also used : ServerOption(com.navercorp.pinpoint.grpc.server.ServerOption) Test(org.junit.Test)

Aggregations

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