- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 189 for leave (0.01 sec)
-
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java
*/ package jcifs.internal.smb2.lease; /** * SMB2 Lease State constants * * MS-SMB2 2.2.13.2.8 */ public class Smb2LeaseState { /** * No lease caching */ public static final int SMB2_LEASE_NONE = 0x00; /** * Read caching lease (R) */ public static final int SMB2_LEASE_READ_CACHING = 0x01; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/config/BaseConfiguration.java
/** Whether to use SMB2/SMB3 leases for caching */ protected boolean useLease = true; /** Lease timeout in milliseconds */ protected int leaseTimeout = 30000; /** Maximum number of concurrent leases */ protected int maxLeases = 1000; /** Preferred lease version (1 or 2) */ protected int leaseVersion = 2; /** Lease break timeout in seconds (per MS-SMB2 spec) */ protected int leaseBreakTimeout = 60;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 36.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertArrayEquals(testKey.getKey(), encodedKey); // Verify lease state at offset 40 (24 + 16 for key) assertEquals(testState, SMBUtil.readInt4(buffer, 40)); // Verify lease flags at offset 44 (40 + 4 for state) assertEquals(0, SMBUtil.readInt4(buffer, 44)); // Verify lease duration at offset 48 (44 + 4 for flags) - should be 0 (reserved)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
- **MS-SMB2 Section 2.2.36**: SMB2 Change Notify Response - **MS-SMB2 Section 3.3.5.9.11**: Directory Leasing and Caching ## 3. Directory Lease Types ### 3.1 Directory-Specific Lease States ```java public class DirectoryLeaseState extends Smb2LeaseState { // Standard lease states apply, plus directory-specific semantics: // READ_CACHING for directories means: // - Can cache directory enumeration results
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/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
*/ public boolean isDurableHandleGranted() { return hasDurableHandleResponse(); } /** * Get the lease key from the response * @return the lease key or null if no lease was granted */ public jcifs.internal.smb2.lease.Smb2LeaseKey getLeaseKey() { LeaseV2CreateContextResponse v2 = getLeaseV2Context(); if (v2 != null) { return v2.getLeaseKey();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
setRequestedOplockLevel(SMB2_OPLOCK_LEVEL_LEASE); } /** * Add a lease V2 context to this request * @param leaseKey the lease key * @param requestedState the requested lease state * @param parentLeaseKey the parent lease key (can be null) * @param epoch the lease epoch */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java
*/ private final long createTime; /** * The timestamp of the last access to this handle */ private volatile long lastAccessTime; /** * The associated lease key if this handle has an SMB2 lease */ private final Smb2LeaseKey leaseKey; /** * Flag indicating whether this handle is currently being reconnected */ private volatile boolean reconnecting;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
@Test @DisplayName("Should generate random lease key with correct size") void testRandomLeaseKeyGeneration() { Smb2LeaseKey key = new Smb2LeaseKey(); assertNotNull(key.getKey()); assertEquals(16, key.getKey().length); assertFalse(key.isZero()); } @Test @DisplayName("Should create lease key from byte array") void testLeaseKeyFromBytes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
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 directoryLeaseManager.handleDirectoryLeaseBreak(leaseKey, Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING);
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/DirectoryChangeNotifier.java
* @return the directory path */ public String getDirectoryPath() { return directoryPath; } /** * Gets the lease key associated with this notification handle * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.7K bytes - Viewed (0)