- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for DirectoryCacheEntry (0.55 sec)
-
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; /** * Cache entry for directory contents with thread-safe operations */ public class DirectoryCacheEntry { private final String directoryPath; private final Smb2LeaseKey leaseKey; private final long createTime; private volatile long lastUpdateTime; private volatile long lastAccessTime;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
// Request base lease Smb2LeaseKey leaseKey = baseLeaseManager.requestLease(directoryPath, requestedState); // Create directory cache entry DirectoryCacheEntry cacheEntry = new DirectoryCacheEntry(directoryPath, leaseKey, scope); directoryCache.put(directoryPath, cacheEntry); leaseToPath.put(leaseKey, directoryPath); // Start change notification if enabled
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
// Request base lease Smb2LeaseKey leaseKey = baseLeaseManager.requestLease(directoryPath, requestedState); // Create directory cache entry DirectoryCacheEntry cacheEntry = new DirectoryCacheEntry(directoryPath, leaseKey, scope); directoryCache.put(directoryPath, cacheEntry); leaseToPath.put(leaseKey, directoryPath); // Start change notification if enabled
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertNotNull(key1); assertNotNull(key2); assertNotEquals(key1, key2); // Verify both cache entries exist DirectoryCacheEntry entry1 = directoryLeaseManager.getCacheEntry(dir1); DirectoryCacheEntry entry2 = directoryLeaseManager.getCacheEntry(dir2); assertNotNull(entry1); assertNotNull(entry2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
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) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
import org.junit.jupiter.api.Test; /** * Unit tests for DirectoryCacheEntry */ public class DirectoryCacheEntryTest { private DirectoryCacheEntry entry; private Smb2LeaseKey leaseKey; private String directoryPath = "/test/dir"; @BeforeEach public void setUp() { leaseKey = new Smb2LeaseKey(); entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0)