- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 766 for lease (0.02 sec)
-
docs/smb3-features/01-smb3-lease-design.md
} ``` ## 12. Future Enhancements 1. **Directory Leases**: Extend lease support for directories 2. **Lease Key Persistence**: Save lease keys for reconnection 3. **Parent-Child Relationships**: Implement hierarchical leases 4. **Lease Sharing**: Support lease sharing across handles
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
scheduler.scheduleAtFixedRate(this::cleanupExpiredEntries, 60, 60, TimeUnit.SECONDS); } /** * Request a directory lease * * @param directoryPath directory path * @param requestedState requested lease state * @param scope cache scope * @return lease key */ public Smb2LeaseKey requestDirectoryLease(String directoryPath, int requestedState, DirectoryCacheScope scope) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
return CONTEXT_NAME_BYTES; } /** * Gets the lease key for this directory lease context * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Sets the lease key for this directory lease context * @param leaseKey the lease key to set */ public void setLeaseKey(Smb2LeaseKey leaseKey) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 9.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java
throw new IllegalArgumentException("Lease key cannot be null"); } if (key.length != LEASE_KEY_SIZE) { throw new IllegalArgumentException("Lease key must be 16 bytes, got " + key.length); } this.key = Arrays.copyOf(key, LEASE_KEY_SIZE); } /** * Get the lease key bytes * * @return copy of the 16-byte lease key */ public byte[] getKey() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only) // Write name System.arraycopy("DLse".getBytes(), 0, buffer, 16, 4); // Write lease key Smb2LeaseKey key = new Smb2LeaseKey(); key.encode(buffer, 24); // Write lease state SMBUtil.writeInt4(DirectoryLeaseState.DIRECTORY_READ_HANDLE, buffer, 40);
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/LeaseManagerTest.java
Smb2LeaseKey key2 = leaseManager.requestLease(path2, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING); // Clean up leases older than 5ms int cleaned = leaseManager.cleanupExpiredLeases(5); // At least the first lease should be cleaned assertTrue(cleaned >= 1); // Check if old lease was removed LeaseEntry entry1 = leaseManager.getLease(key1); if (cleaned == 2) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
LeaseEntry lease = entry.getValue(); log.info("Evicting lease for path: {} due to max lease limit", lease.getPath()); // Flush any cached data before eviction if (lease.hasWriteCache()) { flushCachedWrites(lease.getPath()); } if (lease.hasReadCache()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K 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) -
docs/SMB3_IMPLEMENTATION_PLAN.md
├── Smb2LeaseState.java - Lease state flags (R, H, W) └── LeaseManager.java - Central lease management ``` #### 1.2 Implementation Tasks - [ ] Define lease state constants (SMB2_LEASE_READ, SMB2_LEASE_HANDLE, SMB2_LEASE_WRITE) - [ ] Implement lease key generation and management - [ ] Add lease context to Create request/response - [ ] Implement lease break notification handling
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java
return CONTEXT_NAME_BYTES; } /** * Gets the lease key for this V2 lease request * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Sets the lease key for this V2 lease request * @param leaseKey the lease key to set */ public void setLeaseKey(Smb2LeaseKey leaseKey) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 6.2K bytes - Viewed (0)