Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for isComplete (0.93 sec)

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

            // Cache should be invalidated
            assertFalse(cacheEntry.isComplete());
    
            // Step 9: Test lease break
            // Re-populate cache
            directoryLeaseManager.updateDirectoryCache(directoryPath, files);
            assertTrue(cacheEntry.isComplete());
    
            // Simulate lease break with loss of read cache
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

            return leaseKey;
        }
    
        /**
         * Checks if the complete directory enumeration has been cached
         * @return true if full enumeration is cached
         */
        public boolean isComplete() {
            return isComplete;
        }
    
        /**
         * Gets the cache scope (ALL or IMMEDIATE_CHILDREN)
         * @return the cache scope
         */
        public DirectoryCacheScope getScope() {
            return 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/internal/smb2/lease/DirectoryLeaseManagerTest.java

            DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(cacheEntry);
            assertTrue(cacheEntry.isComplete());
            assertEquals(2, cacheEntry.getChildren().size());
    
            // Verify the cached files have correct names
            List<DirectoryCacheEntry.FileInfo> children = cacheEntry.getChildren();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            try {
                this.isComplete = true;
                this.hasChanges = false;
                this.lastUpdateTime = System.currentTimeMillis();
            } finally {
                lock.writeLock().unlock();
            }
        }
        
        public void invalidate() {
            lock.writeLock().lock();
            try {
                children.clear();
                isComplete = false;
                hasChanges = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

         */
        public List<SmbFile> getCachedDirectoryListing(String directoryPath) {
            DirectoryCacheEntry entry = getCacheEntry(directoryPath);
            if (entry == null || !entry.isComplete()) {
                return null;
            }
    
            List<SmbFile> files = new ArrayList<>();
            for (DirectoryCacheEntry.FileInfo fileInfo : entry.getChildren()) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            });
    
            assertEquals("unexpected EOF reading netbios session header", exception.getMessage());
        }
    
        @Test
        @DisplayName("readPacketType should throw IOException on incomplete header")
        void testReadPacketTypeIncompleteHeader() {
            byte[] headerData = { (byte) 0x81, (byte) 0x00 }; // Only 2 bytes instead of 4
            ByteArrayInputStream bais = new ByteArrayInputStream(headerData);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. cmd/background-newdisks-heal-ops.go

    	if tracker.ItemsFailed > 0 && tracker.RetryAttempts < 4 {
    		tracker.RetryAttempts++
    
    		healingLogEvent(ctx, "Healing of drive '%s' is incomplete, retrying %s time (healed: %d, skipped: %d, failed: %d).", disk,
    			humanize.Ordinal(int(tracker.RetryAttempts)), tracker.ItemsHealed, tracker.ItemsSkipped, tracker.ItemsFailed)
    
    		tracker.resetHealing()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  8. callbacks/query.go

    							guessNestedRelations := make([]*schema.Relationship, 0, len(nestedJoinNames))
    							currentRelations := db.Statement.Schema.Relationships.Relations
    							for _, relname := range nestedJoinNames {
    								// incomplete match, only treated as raw sql
    								if relation, ok = currentRelations[relname]; ok {
    									guessNestedRelations = append(guessNestedRelations, relation)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (1)
  9. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            int bytesRead = readPacket.readTrailerWireFormat(bais, buffer, 0);
    
            assertEquals(written, bytesRead);
        }
    
        @Test
        @DisplayName("readTrailerWireFormat should throw IOException on incomplete data")
        void testReadTrailerWireFormatIncompleteData() {
            byte[] buffer = new byte[10]; // Too small buffer
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

       *
       *  * 16 bytes: either `OkHttp cache v1\n` if the persisted file is complete. This is another
       *    sequence of bytes if the file is incomplete and should not be used.
       *  * 8 bytes: *n*: upstream data size
       *  * 8 bytes: *m*: metadata size
       *  * *n* bytes: upstream data
       *  * *m* bytes: metadata
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
Back to top