Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for LeaseKey (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

         * @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) {
            this.leaseKey = leaseKey;
        }
    
        /**
         * Gets the current lease state flags for this directory
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

         * @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) {
            this.leaseKey = leaseKey;
        }
    
        /**
         * Gets the requested lease state flags
         * @return the requested lease state
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            this.leaseState = leaseState;
            this.flags = 0;
        }
    
        /**
         * Create a lease break acknowledgment
         *
         * @param context CIFS context
         * @param leaseKey lease key
         * @param leaseState acknowledged lease state
         */
        public Smb2LeaseBreakAcknowledgment(CIFSContext context, Smb2LeaseKey leaseKey, int leaseState) {
            this(context.getConfig(), leaseKey, leaseState);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

            // Flags (4 bytes)
            this.flags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // LeaseKey (16 bytes)
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            bufferIndex += 16;
    
            // CurrentLeaseState (4 bytes)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java

         * @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) {
            this.leaseKey = leaseKey;
        }
    
        /**
         * Gets the requested lease state flags for V2
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

     */
    public class DirectoryCacheEntryTest {
    
        private DirectoryCacheEntry entry;
        private Smb2LeaseKey leaseKey;
        private String directoryPath = "/test/dir";
    
        @BeforeEach
        public void setUp() {
            leaseKey = new Smb2LeaseKey();
            entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN);
        }
    
        @Test
        public void testConstructor() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         * @param fileId the 16-byte file ID
         * @param type the handle type
         * @param timeout the timeout in milliseconds
         * @param leaseKey the associated lease key (can be null)
         */
        public HandleInfo(String path, HandleGuid guid, byte[] fileId, HandleType type, long timeout, Smb2LeaseKey leaseKey) {
            this.path = path;
            this.createGuid = guid;
            this.fileId = Arrays.copyOf(fileId, 16);
            this.type = type;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  10. 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);
            
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 36.2K bytes
    - Click Count (0)
Back to Top