Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getStore (0.04 sec)

  1. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/StartStopExtension.kt

    /** Implements the policy specified by [StartStop]. */
    internal class StartStopExtension :
      BeforeEachCallback,
      BeforeAllCallback {
      override fun beforeAll(context: ExtensionContext) {
        val store = context.getStore(Namespace.create(StartStop::class.java))
    
        val staticFields =
          findAnnotatedFields(
            context.requiredTestClass,
            StartStop::class.java,
          ) { Modifier.isStatic(it.modifiers) }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. docs/smb3-features/03-multi-channel-design.md

            if (errorRate > 0.1) score -= 50;
            else if (errorRate > 0.01) score -= 20;
            
            // Adjust based on interface capabilities
            score += localInterface.getScore() / 100;
            score += remoteInterface.getScore() / 100;
            
            // Prefer primary channel slightly
            if (isPrimary) score += 10;
            
            return Math.max(0, score);
        }
    }
    ```
    
    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/ChannelInfo.java

                score -= 50;
            else if (errorRate > 0.01)
                score -= 20;
    
            // Adjust based on interface capabilities
            score += localInterface.getScore() / 100;
            score += remoteInterface.getScore() / 100;
    
            // Prefer primary channel slightly
            if (isPrimary)
                score += 10;
    
            // Penalize channels with many pending operations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

        void testGetScore() {
            NetworkInterfaceInfo basic = new NetworkInterfaceInfo(testAddress, 1000);
            assertEquals(1000, basic.getScore()); // Base score is link speed
    
            NetworkInterfaceInfo fast = new NetworkInterfaceInfo(testAddress, 10000);
            assertTrue(fast.getScore() > basic.getScore());
        }
    
        @Test
        void testCapabilitySettings() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

        void testScoring() {
            channelInfo.setState(ChannelState.ESTABLISHED);
            int baseScore = channelInfo.getScore();
            assertTrue(baseScore > 0);
    
            // Active channel should have lower score (busy penalty)
            channelInfo.setState(ChannelState.ACTIVE);
            int activeScore = channelInfo.getScore();
            assertTrue(activeScore < baseScore);
    
            // Failed channel should have zero score
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

                    remoteInterfaces.add(info);
                }
            }
    
            // Sort by score (best interfaces first)
            remoteInterfaces.sort((a, b) -> Integer.compare(b.getScore(), a.getScore()));
    
            log.debug("Discovered {} remote network interfaces", remoteInterfaces.size());
        }
    
        private void discoverLocalInterfaces() {
            localInterfaces.clear();
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

        private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) {
            // Calculate total weight
            int totalWeight = 0;
            for (ChannelInfo channel : channels) {
                totalWeight += channel.getScore();
            }
    
            if (totalWeight == 0) {
                // All channels have zero score, pick randomly
                List<ChannelInfo> list = new ArrayList<>(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/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

                docMap.put(fessConfig.getResponseFieldSitePath(), viewHelper.getSitePath(docMap));
            }
    
            if (!docMap.containsKey(Constants.SCORE)) {
                final float score = searchHit.getScore();
                if (Float.isFinite(score)) {
                    docMap.put(Constants.SCORE, score);
                }
            }
    
            if (!docMap.containsKey(fessConfig.getIndexFieldId())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            assertTrue(nic.isRssCapable());
            assertFalse(nic.isRdmaCapable());
            assertEquals(address, nic.getAddress());
    
            // Test scoring
            int score = nic.getScore();
            assertEquals(11000, score); // 10000 (link speed) + 1000 (RSS bonus)
    
            // Test encoding/decoding
            byte[] encoded = nic.encode();
            assertNotNull(encoded);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

        }
    
        /**
         * Get a score for interface selection (higher is better)
         *
         * @return interface score
         */
        public int getScore() {
            int score = linkSpeed; // Base score is link speed
    
            if (rssCapable)
                score += 1000; // Prefer RSS-capable
            if (rdmaCapable)
                score += 2000; // Prefer RDMA-capable
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top