Home / Class/ IoUringBufferRingSocketMultipleConnectTest Class — netty Architecture

IoUringBufferRingSocketMultipleConnectTest Class — netty Architecture

Architecture documentation for the IoUringBufferRingSocketMultipleConnectTest class in IoUringBufferRingSocketMultipleConnectTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c52ccc74_8f8f_2d58_aa86_af8dda8ef2b1["IoUringBufferRingSocketMultipleConnectTest"]
  41262aa6_e560_f54a_8d01_90f221a86baa["IoUringBufferRingSocketMultipleConnectTest.java"]
  c52ccc74_8f8f_2d58_aa86_af8dda8ef2b1 -->|defined in| 41262aa6_e560_f54a_8d01_90f221a86baa
  6e758266_cc59_a7b6_8c12_fbd1a5f7c9a0["loadJNI()"]
  c52ccc74_8f8f_2d58_aa86_af8dda8ef2b1 -->|method| 6e758266_cc59_a7b6_8c12_fbd1a5f7c9a0
  877328b3_f487_fb47_1685_9ff25e5bf49b["newFactories()"]
  c52ccc74_8f8f_2d58_aa86_af8dda8ef2b1 -->|method| 877328b3_f487_fb47_1685_9ff25e5bf49b
  8cdcba5c_dc43_834f_cdc2_1702afd7f6a3["configure()"]
  c52ccc74_8f8f_2d58_aa86_af8dda8ef2b1 -->|method| 8cdcba5c_dc43_834f_cdc2_1702afd7f6a3

Relationship Graph

Source Code

transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketMultipleConnectTest.java lines 33–63

public class IoUringBufferRingSocketMultipleConnectTest extends SocketMultipleConnectTest {

    @BeforeAll
    public static void loadJNI() {
        assumeTrue(IoUring.isAvailable());
        assumeTrue(IoUring.isRegisterBufferRingSupported());
    }

    @Override
    protected List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> newFactories() {
        List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> factories = new ArrayList<>();
        for (TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap> comboFactory
                : IoUringSocketTestPermutation.INSTANCE.socket()) {
            EventLoopGroup group = comboFactory.newClientInstance().config().group();
            if (group instanceof IoEventLoopGroup) {
                IoEventLoopGroup ioGroup = (IoEventLoopGroup) group;
                if (ioGroup.isIoType(NioIoHandler.class) || ioGroup.isIoType(IoUringIoHandler.class)) {
                    factories.add(comboFactory);
                }
            }
        }
        return factories;
    }

    @Override
    protected void configure(ServerBootstrap sb, Bootstrap cb, ByteBufAllocator allocator) {
        super.configure(sb, cb, allocator);
        sb.childOption(IoUringChannelOption.IO_URING_BUFFER_GROUP_ID, IoUringSocketTestPermutation.BGID);
        cb.option(IoUringChannelOption.IO_URING_BUFFER_GROUP_ID, IoUringSocketTestPermutation.BGID);
    }
}

Frequently Asked Questions

What is the IoUringBufferRingSocketMultipleConnectTest class?
IoUringBufferRingSocketMultipleConnectTest is a class in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketMultipleConnectTest.java.
Where is IoUringBufferRingSocketMultipleConnectTest defined?
IoUringBufferRingSocketMultipleConnectTest is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketMultipleConnectTest.java at line 33.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free