Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for directoryPath (0.06 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            assertEquals(expectedKey, result);
            verify(baseLeaseManager).requestLease(directoryPath, requestedState);
    
            // Verify cache entry was created
            DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(cacheEntry);
            assertEquals(directoryPath, cacheEntry.getDirectoryPath());
    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. docs/smb3-features/04-directory-leasing-design.md

            directoryCache.put(directoryPath, cacheEntry);
            leaseToPath.put(leaseKey, directoryPath);
            
            // Start change notification if enabled
            if (context.getConfig().isDirectoryNotificationsEnabled()) {
                changeNotifier.startWatching(directoryPath, leaseKey);
            }
            
            return leaseKey;
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            // Step 4: Initially no cached listing
            assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath));
    
            // Step 5: Simulate directory enumeration and update cache
            List<SmbFile> files = Arrays.asList(mockFile1, mockFile2);
            directoryLeaseManager.updateDirectoryCache(directoryPath, files);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

         *
         * @param directoryPath directory path
         * @param leaseKey lease key
         */
        public void startWatching(String directoryPath, Smb2LeaseKey leaseKey) {
            if (activeWatchers.containsKey(directoryPath)) {
                return; // Already watching
            }
    
            try {
                SmbFile directory = new SmbFile(directoryPath, leaseManager.getContext());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

            String directoryPath = smbFile.getPath();
    
            // Check if we can use cached directory listing
            if (dirManager.canCacheDirectoryListing(directoryPath)) {
                List<SmbFile> cachedFiles = dirManager.getCachedDirectoryListing(directoryPath);
                if (cachedFiles != null) {
    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/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

        private Smb2LeaseKey leaseKey;
        private String directoryPath = "/test/dir";
    
        @BeforeEach
        public void setUp() {
            leaseKey = new Smb2LeaseKey();
            entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN);
        }
    
        @Test
        public void testConstructor() {
            assertEquals(directoryPath, entry.getDirectoryPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

    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)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    1
    201105
    2
    
    CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
    """
        fileSystem.createDirectory(cache.directoryPath)
        writeFile(cache.directoryPath, "$urlKey.0", entryMetadata)
        writeFile(cache.directoryPath, "$urlKey.1", entryBody)
        writeFile(cache.directoryPath, "journal", journalBody)
        cache = Cache(fileSystem, cache.directory.path.toPath(), Int.MAX_VALUE.toLong())
        client =
          client
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

      @Throws(IOException::class)
      override fun close() {
        cache.close()
      }
    
      @get:JvmName("directory")
      val directory: File
        get() = cache.directory.toFile()
    
      @get:JvmName("directoryPath")
      val directoryPath: Path
        get() = cache.directory
    
      @JvmName("-deprecated_directory")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "directory"),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top