Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for removeChannels (0.05 sec)

  1. src/main/java/jcifs/smb/MultiChannelManager.java

            }
        }
    
        /**
         * Removes all channels for a session.
         *
         * @param sessionId the session identifier
         */
        public void removeChannels(String sessionId) {
            ChannelGroup channelGroup = sessionChannels.remove(sessionId);
            if (channelGroup != null) {
                for (ChannelInfo channel : channelGroup.getChannels()) {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

                } else {
                    // Remove channel after max retries
                    removeChannel(failedChannel);
                }
            } catch (Exception e) {
                // Recovery not possible, remove synchronously
                removeChannel(failedChannel);
                return;
            }
        }
    
        /**
         * Shutdown the failover handler
         */
        public void shutdown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            failover.handleFailure(failedChannel, error);
    
            assertEquals(ChannelState.FAILED, failedChannel.getState());
            verify(mockChannelManager).removeChannel(failedChannel);
        }
    
        @Test
        void testFailoverStateCreation() {
            ChannelFailover.FailoverState state = new ChannelFailover.FailoverState("test-channel");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

        }
    
        /**
         * Remove a channel
         *
         * @param channel channel to remove
         */
        public void removeChannel(ChannelInfo channel) {
            channels.remove(channel.getChannelId());
            try {
                if (channel.getTransport() != null) {
                    channel.getTransport().close();
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            // Remove should not throw exception even if channel doesn't exist
            assertDoesNotThrow(() -> channelManager.removeChannel(channel));
        }
    
        @Test
        void testShutdown() {
            assertDoesNotThrow(() -> channelManager.shutdown());
    
            // Multiple shutdowns should be safe
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. docs/smb3-features/03-multi-channel-design.md

                    handleFailure(channel, e);
                }
            });
        }
        
        private void removeChannel(ChannelInfo channel) {
            log.info("Removing failed channel {} after max retries", channel.getChannelId());
            
            manager.removeChannel(channel);
            failoverStates.remove(channel.getChannelId());
            
            // Try to establish a replacement channel
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top