- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for IMMEDIATE_CHILDREN (0.09 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
public void testRequestDirectoryLease() { String directoryPath = "/test/dir"; int requestedState = DirectoryLeaseState.DIRECTORY_READ_HANDLE; DirectoryCacheScope scope = DirectoryCacheScope.IMMEDIATE_CHILDREN; Smb2LeaseKey expectedKey = new Smb2LeaseKey(); when(baseLeaseManager.requestLease(directoryPath, requestedState)).thenReturn(expectedKey);
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/DirectoryLeaseContextTest.java
assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, context.getCacheScope()); assertEquals(30000L, context.getMaxCacheAge()); assertTrue(context.isNotificationEnabled()); } @Test public void testFlagsEncoding() { Smb2LeaseKey key = new Smb2LeaseKey(); // Test with IMMEDIATE_CHILDREN scope (no recursive flag)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
// Step 1: Request directory lease Smb2LeaseKey leaseKey = directoryLeaseManager.requestDirectoryLease(directoryPath, DirectoryLeaseState.DIRECTORY_READ_HANDLE, DirectoryCacheScope.IMMEDIATE_CHILDREN); assertNotNull(leaseKey); // Step 2: Verify cache entry was created DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
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/main/java/jcifs/internal/smb2/lease/DirectoryCacheScope.java
/** * Defines the scope of directory caching for SMB3 directory leasing */ public enum DirectoryCacheScope { /** * Cache only direct children of the directory */ IMMEDIATE_CHILDREN, /** * Cache entire subtree recursively (if supported by server) */ RECURSIVE_TREE, /** * Cache only file attributes but not content */ METADATA_ONLY,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 1.3K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
public static final int DIRECTORY_FULL = SMB2_LEASE_FULL; // All three } ``` ### 3.2 Directory Cache Scopes ```java public enum DirectoryCacheScope { IMMEDIATE_CHILDREN, // Only direct children RECURSIVE_TREE, // Entire subtree (if supported) METADATA_ONLY, // File attributes but not content FULL_ENUMERATION // Complete directory listing } ```
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/DirectoryCacheEntryTest.java
entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN); } @Test public void testConstructor() { assertEquals(directoryPath, entry.getDirectoryPath()); assertEquals(leaseKey, entry.getLeaseKey()); assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry.getScope()); assertFalse(entry.isComplete()); assertFalse(entry.hasChanges());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
*/ boolean isUseDirectoryLeasing(); /** * Property {@code jcifs.smb.client.directoryCacheScope} (String, default "IMMEDIATE_CHILDREN") * * @return directory cache scope (IMMEDIATE_CHILDREN, RECURSIVE_TREE, METADATA_ONLY, FULL_ENUMERATION) */ String getDirectoryCacheScope(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
* @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; } /** * Sets the cache scope for this directory cache
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/config/BaseConfiguration.java
*/ protected boolean useDirectoryLeasing = true; /** * The scope of directory caching: ALL (entire subtree) or IMMEDIATE_CHILDREN (direct children only) */ protected String directoryCacheScope = "IMMEDIATE_CHILDREN"; /** * Directory cache timeout in milliseconds */ protected long directoryCacheTimeout = 30000L; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 36.5K bytes - Viewed (0)