Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ChannelInfo (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        @Override
        public boolean equals(Object obj) {
            if (this == obj)
                return true;
            if (obj == null || getClass() != obj.getClass())
                return false;
            ChannelInfo that = (ChannelInfo) obj;
            return channelId != null ? channelId.equals(that.channelId) : that.channelId == null;
        }
    
        @Override
        public int hashCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/MultiChannelManager.java

            }
    
            public List<ChannelInfo> getChannels() {
                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)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

        @Mock
        private SmbTransport mockTransport2;
    
        @Mock
        private CommonServerMessageBlock mockMessage;
    
        private ChannelLoadBalancer loadBalancer;
        private ChannelInfo channel1;
        private ChannelInfo channel2;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            loadBalancer = new ChannelLoadBalancer(mockChannelManager);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            channelInfo.addBytesSent(1000);
            channelInfo.addBytesReceived(2000);
            channelInfo.incrementRequestsSent();
            channelInfo.incrementErrors();
    
            assertEquals(1000, channelInfo.getBytesSent());
            assertEquals(2000, channelInfo.getBytesReceived());
            assertEquals(1, channelInfo.getRequestsSent());
            assertEquals(1, channelInfo.getErrors());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            }
        }
    
        private ChannelInfo selectRoundRobin(Collection<ChannelInfo> channels) {
            List<ChannelInfo> list = new ArrayList<>(channels);
            int index = Math.abs(roundRobinCounter.getAndIncrement() % list.size());
            return list.get(index);
        }
    
        private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) {
            ChannelInfo leastLoadedChannel = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. docs/smb3-features/03-multi-channel-design.md

            }
        }
        
        private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) {
            return channels.stream()
                .min(Comparator.comparingLong(ChannelInfo::getRequestsPending))
                .orElseThrow();
        }
        
        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

         */
        public Collection<ChannelInfo> getChannels() {
            return channels.values();
        }
    
        /**
         * Get healthy channels only
         *
         * @return collection of healthy channels
         */
        public Collection<ChannelInfo> getHealthyChannels() {
            return channels.values()
                    .stream()
                    .filter(ChannelInfo::isHealthy)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000);
            NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000);
            ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface);
            healthyChannel.setState(ChannelState.ESTABLISHED);
    
            // Use reflection or package-private method to add channel for testing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

        }
    
        private void scheduleRecovery(ChannelInfo channel, FailoverState state) {
            state.incrementRetry();
    
            // For test purposes, execute recovery immediately without delay
            // In production, this might use the delay from getNextRetryTime()
            executor.submit(() -> attemptRecovery(channel, state));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            NetworkInterfaceInfo remoteNic = new NetworkInterfaceInfo(remoteAddr, 445);
    
            // Mock transport doesn't have isConnected, but we can work around it
    
            ChannelInfo channel = new ChannelInfo("test-channel", mockTransport, localNic, remoteNic);
            channel.setState(ChannelState.ESTABLISHED);
    
            // Verify channel properties
            assertEquals("test-channel", channel.getChannelId());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top