Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Smb2LeaseKey (0.92 sec)

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

        public void testGetName() {
            Smb2LeaseKey key = new Smb2LeaseKey();
            DirectoryLeaseContext context = new DirectoryLeaseContext(key, 0, DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            byte[] name = context.getName();
            assertNotNull(name);
            assertEquals("DLse", new String(name));
        }
    
        @Test
        public void testSettersAndGetters() {
            Smb2LeaseKey key1 = new Smb2LeaseKey();
    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/LeaseManager.java

     */
    public class LeaseManager {
    
        private static final Logger log = LoggerFactory.getLogger(LeaseManager.class);
    
        private final ConcurrentHashMap<Smb2LeaseKey, LeaseEntry> leases;
        private final ConcurrentHashMap<String, Smb2LeaseKey> pathToLease;
        private final ConcurrentHashMap<String, WeakReference<SmbFile>> fileCache;
        private final ReadWriteLock lock;
        private final CIFSContext context;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. docs/smb3-features/01-smb3-lease-design.md

    import org.junit.Test;
    import static org.junit.Assert.*;
    
    public class LeaseTest {
        
        @Test
        public void testLeaseKeyGeneration() {
            Smb2LeaseKey key1 = new Smb2LeaseKey();
            Smb2LeaseKey key2 = new Smb2LeaseKey();
            
            assertNotNull(key1.getKey());
            assertEquals(16, key1.getKey().length);
            assertFalse(Arrays.equals(key1.getKey(), key2.getKey()));
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            String dir1 = "/test/dir1";
            String dir2 = "/test/dir2";
            String dir3 = "/test/dir3";
    
            Smb2LeaseKey key1 = new Smb2LeaseKey();
            Smb2LeaseKey key2 = new Smb2LeaseKey();
            Smb2LeaseKey key3 = new Smb2LeaseKey();
    
            when(baseLeaseManager.requestLease(dir1, DirectoryLeaseState.DIRECTORY_READ_HANDLE)).thenReturn(key1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

        void testReuseExistingLease() {
            String path = "/share/file.txt";
            int requestedState = Smb2LeaseState.SMB2_LEASE_READ_WRITE;
    
            Smb2LeaseKey key1 = leaseManager.requestLease(path, requestedState);
            Smb2LeaseKey key2 = leaseManager.requestLease(path, requestedState);
    
            assertEquals(key1, key2);
        }
    
        @Test
        @DisplayName("Should update lease state")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. docs/smb3-features/04-directory-leasing-design.md

        }
        
        public Smb2LeaseKey requestDirectoryLease(String directoryPath, 
                                                 int requestedState, 
                                                 DirectoryCacheScope scope) {
            // Request base lease
            Smb2LeaseKey leaseKey = baseLeaseManager.requestLease(directoryPath, requestedState);
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            // Request leases for both directories
            Smb2LeaseKey key1 = directoryLeaseManager.requestDirectoryLease(dir1, DirectoryLeaseState.DIRECTORY_READ_HANDLE,
                    DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            Smb2LeaseKey key2 =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

        private final CIFSContext context;
        private final LeaseManager baseLeaseManager;
        private final ConcurrentHashMap<String, DirectoryCacheEntry> directoryCache;
        private final ConcurrentHashMap<Smb2LeaseKey, String> leaseToPath;
        private final ScheduledExecutorService scheduler;
        private final DirectoryChangeNotifier changeNotifier;
    
        /**
         * Create a new directory lease manager
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

        /**
         * Change notification handle
         */
        public static class ChangeNotificationHandle {
            private final String directoryPath;
            private final Smb2LeaseKey leaseKey;
            private final SmbFile directoryFile;
            private volatile boolean active;
            private CompletableFuture<Void> notificationFuture;
    
            /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top