Home / Function/ testScaleDown() — netty Function Reference

testScaleDown() — netty Function Reference

Architecture documentation for the testScaleDown() function in AutoScalingEventExecutorChooserFactoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c2d47c78_2668_c707_abc4_78fb1fc4e33a["testScaleDown()"]
  b457a618_1afa_e8a9_dd34_152c53154c93["AutoScalingEventExecutorChooserFactoryTest"]
  c2d47c78_2668_c707_abc4_78fb1fc4e33a -->|defined in| b457a618_1afa_e8a9_dd34_152c53154c93
  451cbcf6_6cbf_b404_e07f_191549368cc2["TestEventExecutorGroup()"]
  c2d47c78_2668_c707_abc4_78fb1fc4e33a -->|calls| 451cbcf6_6cbf_b404_e07f_191549368cc2
  70a22675_9cb3_276f_a519_80257cc8a1a0["startAllExecutors()"]
  c2d47c78_2668_c707_abc4_78fb1fc4e33a -->|calls| 70a22675_9cb3_276f_a519_80257cc8a1a0
  style c2d47c78_2668_c707_abc4_78fb1fc4e33a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java lines 108–122

    @Test
    @Timeout(30)
    void testScaleDown() throws InterruptedException {
        TestEventExecutorGroup group = new TestEventExecutorGroup(1, 3, 50, TimeUnit.MILLISECONDS);
        try {
            startAllExecutors(group);
            assertEquals(3, group.activeExecutorCount());
            Thread.sleep(200);

            // The monitor should have suspended 2 executors, leaving 1 active.
            assertEquals(1, group.activeExecutorCount());
        } finally {
            group.shutdownGracefully().syncUninterruptibly();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testScaleDown() do?
testScaleDown() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java.
Where is testScaleDown() defined?
testScaleDown() is defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java at line 108.
What does testScaleDown() call?
testScaleDown() calls 2 function(s): TestEventExecutorGroup, startAllExecutors.

Analyze Your Own Codebase

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

Try Supermodel Free