Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for isComplete (0.52 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/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)
  3. 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)
  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/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

        public void testMarkComplete() {
            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            assertTrue(entry.hasChanges());
            assertFalse(entry.isComplete());
    
            entry.markComplete();
    
            assertTrue(entry.isComplete());
            assertFalse(entry.hasChanges()); // Changes are cleared when marked complete
        }
    
        @Test
        public void testInvalidate() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                    if (parentPath != null) {
                        var parentCache = dirManager.getCacheEntry(parentPath);
                        if (parentCache != null && parentCache.isComplete()) {
                            boolean exists = parentCache.hasChild(smbFile.getName());
                            log.debug("Using cached existence check for: {}", smbFile.getPath());
                            return exists;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(e));
        return future;
      }
    
      public static <V> UncheckedThrowingFuture<V> incomplete() {
        return new UncheckedThrowingFuture<V>();
      }
    
      public void complete(RuntimeException e) {
        if (!super.setException(new WrapperException(checkNotNull(e)))) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

            return memoryRegion;
        }
    
        /**
         * Check if request is completed
         *
         * @return true if completed, false otherwise
         */
        public boolean isCompleted() {
            return completed;
        }
    
        /**
         * Mark request as completed
         */
        public void markCompleted() {
            this.completed = true;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. 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)
Back to top