Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for getScope (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

        @Test
        public void testConstructor() {
            assertEquals(directoryPath, entry.getDirectoryPath());
            assertEquals(leaseKey, entry.getLeaseKey());
            assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry.getScope());
            assertFalse(entry.isComplete());
            assertFalse(entry.hasChanges());
            assertTrue(entry.getChildren().isEmpty());
        }
    
        @Test
        public void testUpdateChild() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

         * Gets the cache scope (ALL or IMMEDIATE_CHILDREN)
         * @return the cache scope
         */
        public DirectoryCacheScope getScope() {
            return scope;
        }
    
        /**
         * Sets the cache scope for this directory cache
         * @param scope the cache scope to set
         */
        public void setScope(DirectoryCacheScope scope) {
            this.scope = scope;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameTest.java

        }
    
        @Test
        void getScope_shouldReturnScope() {
            Name name = new Name(mockConfig, "TestName", 0x20, "test.scope");
            assertEquals("test.scope", name.getScope());
        }
    
        @Test
        void getNameType_shouldReturnHexCode() {
            Name name = new Name(mockConfig, "TestName", 0x1C, null);
            assertEquals(0x1C, name.getNameType());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                    d.getArtifactId(),
                    versionRange,
                    d.getType(),
                    d.getClassifier(),
                    d.getScope(),
                    d.isOptional());
    
            if (Artifact.SCOPE_SYSTEM.equals(d.getScope()) && d.getSystemPath() != null) {
                artifact.setFile(new File(d.getSystemPath()));
            }
    
            if (!d.getExclusions().isEmpty()) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 31.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                throws ArtifactResolutionException, ArtifactNotFoundException {
            if (artifact == null) {
                return;
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(artifact.getScope())) {
                File systemFile = artifact.getFile();
    
                if (systemFile == null) {
                    throw new ArtifactNotFoundException("System artifact: " + artifact + " has no file attached", artifact);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 25K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	if accessKeyID == "" || secretAccessKey == "" {
    		return errors.New("Presign cannot be generated without access and secret keys")
    	}
    
    	region := globalSite.Region()
    	date := UTCNow()
    	scope := getScope(date, region)
    	credential := fmt.Sprintf("%s/%s", accessKeyID, scope)
    
    	// Set URL query.
    	query := req.URL.Query()
    	query.Set("X-Amz-Algorithm", signV4Algorithm)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top