IoUringBufferRingSocketRstTest Class — netty Architecture
Architecture documentation for the IoUringBufferRingSocketRstTest class in IoUringBufferRingSocketRstTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 059dd3dc_bab1_1125_208d_38042391d397["IoUringBufferRingSocketRstTest"] d582e2a4_c04d_896e_1069_412c5487a6c3["IoUringBufferRingSocketRstTest.java"] 059dd3dc_bab1_1125_208d_38042391d397 -->|defined in| d582e2a4_c04d_896e_1069_412c5487a6c3 42c21cb2_76fa_b359_9647_b88a3d3e1645["loadJNI()"] 059dd3dc_bab1_1125_208d_38042391d397 -->|method| 42c21cb2_76fa_b359_9647_b88a3d3e1645 98f8cbb9_670c_034c_3499_4cba006c403b["newFactories()"] 059dd3dc_bab1_1125_208d_38042391d397 -->|method| 98f8cbb9_670c_034c_3499_4cba006c403b 58bc89ce_6012_f488_9d7d_862d8fa6e8ae["assertRstOnCloseException()"] 059dd3dc_bab1_1125_208d_38042391d397 -->|method| 58bc89ce_6012_f488_9d7d_862d8fa6e8ae 18c6c3e4_01f8_72d9_cefc_4e3cdc19b946["configure()"] 059dd3dc_bab1_1125_208d_38042391d397 -->|method| 18c6c3e4_01f8_72d9_cefc_4e3cdc19b946
Relationship Graph
Source Code
transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketRstTest.java lines 34–65
public class IoUringBufferRingSocketRstTest extends SocketRstTest {
@BeforeAll
public static void loadJNI() {
assumeTrue(IoUring.isAvailable());
assumeTrue(IoUring.isRegisterBufferRingSupported());
}
@Override
protected List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> newFactories() {
return IoUringSocketTestPermutation.INSTANCE.socket();
}
@Override
protected void assertRstOnCloseException(IOException cause, Channel clientChannel) {
if (!AbstractIoUringChannel.class.isInstance(clientChannel)) {
super.assertRstOnCloseException(cause, clientChannel);
return;
}
assertTrue(cause instanceof Errors.NativeIoException,
"actual [type, message]: [" + cause.getClass() + ", " + cause.getMessage() + ']');
assertEquals(Errors.ERRNO_ECONNRESET_NEGATIVE, ((Errors.NativeIoException) cause).expectedErr());
}
@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);
}
}
Defined In
Source
Frequently Asked Questions
What is the IoUringBufferRingSocketRstTest class?
IoUringBufferRingSocketRstTest is a class in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketRstTest.java.
Where is IoUringBufferRingSocketRstTest defined?
IoUringBufferRingSocketRstTest is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingSocketRstTest.java at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free