Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for channel2 (0.04 sec)

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

            NetworkInterfaceInfo remote2 = new NetworkInterfaceInfo(addr2, 10000); // Faster interface
    
            channel1 = new ChannelInfo("channel1", mockTransport1, local, remote1);
            channel1.setState(ChannelState.ESTABLISHED);
    
            channel2 = new ChannelInfo("channel2", mockTransport2, local, remote2);
            channel2.setState(ChannelState.ESTABLISHED);
        }
    
        @Test
        void testSingleChannelSelection() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. docs/smb3-features/03-multi-channel-design.md

            
            // Establish connection
            channel.setState(ChannelState.CONNECTING);
            transport.connect();
            
            // Perform channel binding
            performChannelBinding(channel);
            
            // Add to active channels
            channels.put(channelId, channel);
            channel.setState(ChannelState.ESTABLISHED);
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

         */
        public ChannelInfo getChannelForTransport(SmbTransport transport) {
            return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null);
        }
    
        /**
         * Remove a channel
         *
         * @param channel channel to remove
         */
        public void removeChannel(ChannelInfo channel) {
            channels.remove(channel.getChannelId());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

            } catch (Exception e) {
                log.warn("Failed to recover channel {}: {}", channel.getChannelId(), e.getMessage());
    
                // Schedule next retry or remove
                handleFailure(channel, e);
            }
        }
    
        private void removeChannel(ChannelInfo channel) {
            log.info("Removing failed channel {} after max retries", channel.getChannelId());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/MultiChannelManager.java

                return new ArrayList<>(channels);
            }
    
            public void addChannel(ChannelInfo channel) {
                channels.add(channel);
                if (primaryChannel == null) {
                    primaryChannel = channel;
                }
            }
    
            public void removeChannel(ChannelInfo channel) {
                channels.remove(channel);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

                return false;
            ChannelInfo that = (ChannelInfo) obj;
            return channelId != null ? channelId.equals(that.channelId) : that.channelId == null;
        }
    
        @Override
        public int hashCode() {
            return channelId != null ? channelId.hashCode() : 0;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

                long pending = channel.getRequestsPending();
                if (pending < minPending) {
                    minPending = pending;
                    leastLoadedChannel = channel;
                }
            }
            return leastLoadedChannel != null ? leastLoadedChannel : channels.iterator().next();
        }
    
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            ChannelInfo channel = new ChannelInfo("test-channel", mockTransport, localNic, remoteNic);
            channel.setState(ChannelState.ESTABLISHED);
    
            // Verify channel properties
            assertEquals("test-channel", channel.getChannelId());
            assertEquals(mockTransport, channel.getTransport());
            assertEquals(localNic, channel.getLocalInterface());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            when(mockLoadBalancer.selectChannel(mockOperation)).thenThrow(new ChannelLoadBalancer.NoAvailableChannelException("No channels"));
    
            IOException error = new IOException("Connection failed");
    
            // Should not throw exception even if no alternative channels
            assertDoesNotThrow(() -> failover.handleFailure(failedChannel, error));
    
            assertEquals(0, failedChannel.getRequestsPending());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top