Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for unhealthy (0.09 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            when(mockRequest.getTreeId()).thenReturn(123);
    
            // Should throw NoAvailableChannelException when no healthy channels
            assertThrows(ChannelLoadBalancer.NoAvailableChannelException.class, () -> loadBalancer.selectChannel(mockRequest),
                    "Should throw exception when no healthy channels available");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            assertFalse(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.ESTABLISHED);
            assertEquals(ChannelState.ESTABLISHED, channelInfo.getState());
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.ACTIVE);
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.FAILED);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

         * @throws NoAvailableChannelException if no healthy channels available
         */
        public ChannelInfo selectChannel(CommonServerMessageBlock message) throws NoAvailableChannelException {
            Collection<ChannelInfo> availableChannels = manager.getHealthyChannels();
    
            if (availableChannels.isEmpty()) {
                throw new NoAvailableChannelException("No healthy channels available");
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        }
    
        @Test
        void testGetHealthyChannels() throws UnknownHostException {
            assertTrue(channelManager.getHealthyChannels().isEmpty());
    
            // Add a healthy channel manually for testing
            InetAddress addr = InetAddress.getByName("192.168.1.100");
            NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top