Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for addPendingOperation (0.28 sec)

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

            verify(mockLoadBalancer).selectChannel(mockOperation);
            verify(alternativeChannel).addPendingOperation(mockOperation);
        }
    
        @Test
        void testFailureWithNoAlternativeChannels() throws Exception {
            failedChannel.addPendingOperation(mockOperation);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

        @Test
        void testLeastLoadedStrategy() {
            loadBalancer.setStrategy(LoadBalancingStrategy.LEAST_LOADED);
    
            // Add pending operations to channel1 to make it more loaded
            channel1.addPendingOperation(mockMessage);
    
            when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2));
    
            ChannelInfo selected = loadBalancer.selectChannel(mockMessage);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            channelInfo.addPendingOperation(mockOperation);
            assertEquals(1, channelInfo.getRequestsPending());
            assertFalse(channelInfo.getPendingOperations().isEmpty());
    
            assertTrue(channelInfo.removePendingOperation(mockOperation));
            assertEquals(0, channelInfo.getRequestsPending());
    
            channelInfo.addPendingOperation(mockOperation);
    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/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

            return pendingOperations;
        }
    
        /**
         * Add a pending operation
         *
         * @param operation operation to add
         */
        public void addPendingOperation(CommonServerMessageBlock operation) {
            pendingOperations.add(operation);
        }
    
        /**
         * Remove a pending operation
         *
         * @param operation operation to remove
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

            for (CommonServerMessageBlock op : operationsCopy) {
                try {
                    ChannelInfo alternativeChannel = manager.getLoadBalancer().selectChannel(op);
                    alternativeChannel.addPendingOperation(op);
                    // Operation would be resent on alternative channel
                    // For now, skip actual send implementation
                } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top