Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ChannelState (2.01 sec)

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

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.smb2.multichannel;
    
    /**
     * SMB3 Multi-Channel connection states
     */
    public enum ChannelState {
        /**
         * Channel is not connected
         */
        DISCONNECTED(0),
    
        /**
         * Connection establishment in progress
         */
        CONNECTING(1),
    
        /**
         * Authentication in progress
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

         * @return channel score
         */
        public int getScore() {
            int score = 100;
    
            // Adjust based on state
            if (state == ChannelState.ACTIVE)
                score -= 20; // Busy channel penalty
            if (state != ChannelState.ESTABLISHED && state != ChannelState.ACTIVE)
                return 0;
    
            // Adjust based on error rate
            double errorRate = getErrorRate();
            if (errorRate > 0.1)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            channelInfo.setState(ChannelState.ESTABLISHED);
            assertEquals(ChannelState.ESTABLISHED, channelInfo.getState());
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.ACTIVE);
            assertTrue(channelInfo.isHealthy());
    
            channelInfo.setState(ChannelState.FAILED);
            assertFalse(channelInfo.isHealthy());
        }
    
        @Test
        void testActivityTracking() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            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)
  5. docs/smb3-features/03-multi-channel-design.md

            // Calculate channel score for load balancing
            int score = 100;
            
            // Adjust based on state
            if (state == ChannelState.ACTIVE) score -= 20;  // Busy channel
            if (state != ChannelState.ESTABLISHED && state != ChannelState.ACTIVE) return 0;
            
            // Adjust based on error rate
            double errorRate = getErrorRate();
            if (errorRate > 0.1) score -= 50;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            channel.setState(ChannelState.ESTABLISHED);
    
            // Verify channel properties
            assertEquals("test-channel", channel.getChannelId());
            assertEquals(mockTransport, channel.getTransport());
            assertEquals(localNic, channel.getLocalInterface());
            assertEquals(remoteNic, channel.getRemoteInterface());
            assertEquals(ChannelState.ESTABLISHED, channel.getState());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

                // Reconnect
                channel.setState(ChannelState.CONNECTING);
                // Connection would be ensured through proper transport interface
    
                // Re-establish channel binding
                manager.performChannelBinding(channel);
    
                // Update channel with new transport
                channel.setTransport(newTransport);
                channel.setState(ChannelState.ESTABLISHED);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            failedChannel.setState(ChannelState.ESTABLISHED);
    
            when(mockChannelManager.getLoadBalancer()).thenReturn(mockLoadBalancer);
        }
    
        @Test
        void testHandleFailure() {
            IOException error = new IOException("Connection failed");
    
            failover.handleFailure(failedChannel, error);
    
            assertEquals(ChannelState.FAILED, failedChannel.getState());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface);
            healthyChannel.setState(ChannelState.ESTABLISHED);
    
            // Use reflection or package-private method to add channel for testing
            // For now, just test the empty case
            assertEquals(0, channelManager.getHealthyChannels().size());
        }
    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/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            // Establish connection
            channel.setState(ChannelState.CONNECTING);
            // Connection would be ensured through proper transport interface
    
            // 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: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top