Home / Class/ IoUringFileTest Class — netty Architecture

IoUringFileTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  96b8420d_63e4_54db_9d66_040e693d1490["IoUringFileTest"]
  87ed7e6a_cbe9_0738_d6b3_61880d0b6082["IoUringFileTest.java"]
  96b8420d_63e4_54db_9d66_040e693d1490 -->|defined in| 87ed7e6a_cbe9_0738_d6b3_61880d0b6082
  260b6baa_8669_0411_c552_9178afe497aa["loadJNI()"]
  96b8420d_63e4_54db_9d66_040e693d1490 -->|method| 260b6baa_8669_0411_c552_9178afe497aa
  effc9eb1_d03e_e275_9295_610d654cf67c["testGetFd()"]
  96b8420d_63e4_54db_9d66_040e693d1490 -->|method| effc9eb1_d03e_e275_9295_610d654cf67c

Relationship Graph

Source Code

transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringFileTest.java lines 29–49

public class IoUringFileTest {

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

    @Test
    public void testGetFd() throws IOException {
        File file = File.createTempFile("temp", ".tmp");
        file.deleteOnExit();
        FileChannel channel = FileChannel.open(file.toPath());
        DefaultFileRegion region = new DefaultFileRegion(channel, 0, channel.size());
        try {
            int fd = Native.getFd(region);
            Assertions.assertTrue(fd >= 0);
        } finally {
            region.release();
        }
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free