Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for getLeaseKey (0.27 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: Sat Dec 20 13:44:44 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertNotNull(defaultContext.getLeaseKey());
            assertEquals(0, defaultContext.getLeaseState());
            assertEquals(0, defaultContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should initialize with provided values")
        void testParameterizedConstructor() {
            assertEquals(testKey, leaseContext.getLeaseKey());
            assertEquals(testState, leaseContext.getLeaseState());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            // request.addCreateContext(new DurableHandleReconnect(info.getFileId()));
    
            // Add lease context if needed
            // if (info.getLeaseKey() != null) {
            //     request.addLeaseV1Context(info.getLeaseKey(), Smb2LeaseState.SMB2_LEASE_NONE);
            // }
    
            // return request;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (1)
  6. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key for this lease request
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Sets the lease key for this lease request
         * @param leaseKey the lease key to set
         */
        public void setLeaseKey(Smb2LeaseKey leaseKey) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

        public Smb2LeaseBreakNotification(Configuration config) {
            super(config);
        }
    
        /**
         * Gets the lease key that is being broken
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the current lease state before the break
         * @return the current lease state
         */
        public int getCurrentLeaseState() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java

        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key from the server response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the lease state granted by the server
         * @return the granted lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key from the V2 server response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the lease state granted by the server for V2
         * @return the granted lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java

        public Smb2LeaseBreakResponse(Configuration config) {
            super(config);
        }
    
        /**
         * Gets the lease key from the break response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the granted lease state from the break response
         * @return the lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top