Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for updateChild (0.08 sec)

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

                    DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath);
            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            entry.updateChild("file2.txt", 2048L, 2000L, false, 0x20, 600L, 900L);
            entry.markComplete();
    
            // Test FILE_ADDED - should invalidate cache
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. docs/smb3-features/04-directory-leasing-design.md

                return size == attrs.getSize() 
                    && lastModified == attrs.getLastWriteTime()
                    && attributes == attrs.getAttributes();
            }
        }
        
        public void updateChild(String childName, SmbFileAttributes attrs) {
            lock.writeLock().lock();
            try {
                FileInfo existing = children.get(childName);
                FileInfo newInfo = new FileInfo(childName, attrs);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

                updateThreads[i] = new Thread(() -> {
                    for (int j = 0; j < 20; j++) {
                        String fileName = "thread" + threadId + "_file" + j + ".txt";
                        entry.updateChild(fileName, j * 100L, System.currentTimeMillis(), false, 0x20, System.currentTimeMillis() - 10000,
                                System.currentTimeMillis() - 5000);
                    }
                });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

         * @param isDirectory true if directory
         * @param attributes file attributes
         * @param creationTime creation time
         * @param lastAccessTime last access time
         */
        public void updateChild(String childName, long size, long lastModified, boolean isDirectory, long attributes, long creationTime,
                long lastAccessTime) {
            lock.writeLock().lock();
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            if (entry == null)
                return;
    
            // Update cache with new directory listing
            for (SmbFile file : files) {
                try {
                    entry.updateChild(file.getName(), file.length(), file.lastModified(), file.isDirectory(), file.getAttributes(),
                            file.createTime(), file.lastAccess());
                } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top