- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for LeaseKey (0.19 sec)
-
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) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
verify(baseLeaseManager).releaseLease(leaseKey); } @Test public void testShutdown() { String directoryPath = "/test/dir"; Smb2LeaseKey leaseKey = new Smb2LeaseKey(); // Create cache entry when(baseLeaseManager.requestLease(anyString(), anyInt())).thenReturn(leaseKey);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
public boolean canCacheRead() { if (leaseKey != null) { LeaseEntry entry = leaseManager.getLease(leaseKey); return entry != null && entry.hasReadCache(); } return false; // Fall back to oplock logic } public boolean canCacheWrite() { if (leaseKey != null) { LeaseEntry entry = leaseManager.getLease(leaseKey); return entry != null && entry.hasWriteCache();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K 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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
private volatile long lastAccessTime; private final Smb2LeaseKey leaseKey; // Associated lease if any private volatile boolean reconnecting; private transient SmbFile file; // Not serialized public HandleInfo(String path, HandleGuid guid, byte[] fileId, HandleType type, long timeout, Smb2LeaseKey leaseKey) { this.path = path; this.createGuid = guid;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java
} /** * Start watching a directory for changes * * @param directoryPath directory path * @param leaseKey lease key */ public void startWatching(String directoryPath, Smb2LeaseKey leaseKey) { if (activeWatchers.containsKey(directoryPath)) { return; // Already watching } try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
/** * 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; private final ConcurrentHashMap<String, FileInfo> children;
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/create/Smb2CreateRequest.java
} } /** * Add a lease V1 context to this request * @param leaseKey the lease key * @param requestedState the requested lease state */ public void addLeaseV1Context(Smb2LeaseKey leaseKey, int requestedState) { LeaseV1CreateContextRequest leaseContext = new LeaseV1CreateContextRequest(leaseKey, requestedState); addCreateContext(leaseContext);
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/PersistentHandleManager.java
* @param path the file path * @param type the handle type * @param timeout the timeout in milliseconds * @param leaseKey the associated lease key (can be null) * @return the handle GUID */ public HandleGuid requestDurableHandle(String path, HandleType type, long timeout, Smb2LeaseKey leaseKey) { HandleGuid guid = new HandleGuid();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0)