Home / Class/ AbstractServerSocketTest Class — netty Architecture

AbstractServerSocketTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  18b1134d_69c0_f90d_ab33_063216608820["AbstractServerSocketTest"]
  4fd76a28_5449_22aa_70ba_eb283e597f1c["AbstractServerSocketTest.java"]
  18b1134d_69c0_f90d_ab33_063216608820 -->|defined in| 4fd76a28_5449_22aa_70ba_eb283e597f1c
  1214836f_9cdb_5679_faec_6d1a63a9c129["newFactories()"]
  18b1134d_69c0_f90d_ab33_063216608820 -->|method| 1214836f_9cdb_5679_faec_6d1a63a9c129
  9ef99e0b_f7d3_a656_71b2_3fa5748d15cc["configure()"]
  18b1134d_69c0_f90d_ab33_063216608820 -->|method| 9ef99e0b_f7d3_a656_71b2_3fa5748d15cc
  09528862_ba45_1729_df4c_4ce0e41576db["SocketAddress()"]
  18b1134d_69c0_f90d_ab33_063216608820 -->|method| 09528862_ba45_1729_df4c_4ce0e41576db

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractServerSocketTest.java lines 29–47

public abstract class AbstractServerSocketTest extends AbstractTestsuiteTest<ServerBootstrap> {

    @Override
    protected List<TestsuitePermutation.BootstrapFactory<ServerBootstrap>> newFactories() {
        return SocketTestPermutation.INSTANCE.serverSocket();
    }

    @Override
    protected void configure(ServerBootstrap bootstrap, ByteBufAllocator allocator) {
        bootstrap.localAddress(newSocketAddress());
        bootstrap.option(ChannelOption.ALLOCATOR, allocator);
        bootstrap.childOption(ChannelOption.ALLOCATOR, allocator);
    }

    protected SocketAddress newSocketAddress() {
        return new InetSocketAddress(
                NetUtil.LOCALHOST, 0);
    }
}

Frequently Asked Questions

What is the AbstractServerSocketTest class?
AbstractServerSocketTest is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractServerSocketTest.java.
Where is AbstractServerSocketTest defined?
AbstractServerSocketTest is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/AbstractServerSocketTest.java at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free