Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getLeaseKey (0.1 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            DirectoryCacheScope scope = DirectoryCacheScope.IMMEDIATE_CHILDREN;
    
            DirectoryLeaseContext context = new DirectoryLeaseContext(key, leaseState, scope);
    
            assertEquals(key, context.getLeaseKey());
            assertEquals(leaseState, context.getLeaseState());
            assertEquals(scope, context.getCacheScope());
            assertEquals(30000L, context.getMaxCacheAge());
            assertTrue(context.isNotificationEnabled());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            DirectoryCacheEntry entry = directoryCache.remove(directoryPath);
            if (entry != null) {
                leaseToPath.remove(entry.getLeaseKey());
                changeNotifier.stopWatching(directoryPath);
                baseLeaseManager.releaseLease(entry.getLeaseKey());
            }
        }
    
        /**
         * Shutdown the directory lease manager
         */
        public void shutdown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

         */
        public jcifs.internal.smb2.lease.Smb2LeaseKey getLeaseKey() {
            LeaseV2CreateContextResponse v2 = getLeaseV2Context();
            if (v2 != null) {
                return v2.getLeaseKey();
            }
            LeaseV1CreateContextResponse v1 = getLeaseV1Context();
            if (v1 != null) {
                return v1.getLeaseKey();
            }
            return null;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            DirectoryCacheEntry entry = directoryCache.remove(directoryPath);
            if (entry != null) {
                leaseToPath.remove(entry.getLeaseKey());
                changeNotifier.stopWatching(directoryPath);
                baseLeaseManager.releaseLease(entry.getLeaseKey());
            }
        }
        
        private void cleanupExpiredEntries() {
            List<String> expiredPaths = new ArrayList<>();
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            assertEquals(context.getNotificationFilter(), decodedContext.getNotificationFilter());
            assertArrayEquals(context.getLeaseKey().getKey(), decodedContext.getLeaseKey().getKey());
        }
    
        @Test
        public void testConcurrentAccess() throws Exception {
            String directoryPath = "/test/concurrent";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

            return directoryPath;
        }
    
        /**
         * Gets the lease key associated with this directory cache
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Checks if the complete directory enumeration has been cached
         * @return true if full enumeration is cached
         */
        public boolean isComplete() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. docs/smb3-features/01-smb3-lease-design.md

            
            // Handle the lease break
            leaseManager.handleLeaseBreak(
                breakNotif.getLeaseKey(),
                breakNotif.getNewLeaseState()
            );
            
            // Send acknowledgment
            Smb2LeaseBreakAcknowledgment ack = new Smb2LeaseBreakAcknowledgment(
                breakNotif.getLeaseKey(),
                breakNotif.getNewLeaseState()
            );
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            assertNotNull(cacheEntry);
            assertEquals(directoryPath, cacheEntry.getDirectoryPath());
            assertEquals(expectedKey, cacheEntry.getLeaseKey());
            assertEquals(scope, cacheEntry.getScope());
        }
    
        @Test
        public void testGetCacheEntry() {
            String directoryPath = "/test/dir";
            Smb2LeaseKey leaseKey = new Smb2LeaseKey();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                return directoryPath;
            }
    
            /**
             * Gets the lease key associated with this notification handle
             * @return the lease key
             */
            public Smb2LeaseKey getLeaseKey() {
                return leaseKey;
            }
    
            /**
             * Gets the SMB file handle for the monitored directory
             * @return the directory file
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            }
    
            /**
             * Gets the unique lease key identifier for this lease entry
             * @return the lease key
             */
            public Smb2LeaseKey getLeaseKey() {
                return leaseKey;
            }
    
            /**
             * Gets the current lease state flags for this entry
             * @return the current lease state
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top