Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getHandleForReconnect (0.49 sec)

  1. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            }
    
            HandleInfo info = manager.getHandleForReconnect("/test/file.txt");
            assertNull(info);
        }
    
        @Test
        public void testCompleteReconnectSuccess() {
            HandleGuid guid = manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 120000, null);
    
            HandleInfo info = manager.getHandleForReconnect("/test/file.txt");
            assertTrue(info.isReconnecting());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

        }
    
        /**
         * Get handle information for reconnection
         * @param path the file path
         * @return the handle info if available and not expired, null otherwise
         */
        public HandleInfo getHandleForReconnect(String path) {
            lock.readLock().lock();
            try {
                HandleInfo info = handles.get(path);
                if (info != null && !info.isExpired()) {
                    info.setReconnecting(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

            testHandle = new HandleInfo("/test/file.txt", guid, fileId, HandleType.DURABLE_V2, 120000, null);
        }
    
        @Test
        public void testReconnectHandleSuccess() throws Exception {
            when(mockManager.getHandleForReconnect("/test/file.txt")).thenReturn(testHandle);
    
            // Create a test reconnector that succeeds
            TestHandleReconnector testReconnector = new TestHandleReconnector(mockManager, true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. docs/smb3-features/02-persistent-handles-design.md

                if (info.type == HandleType.PERSISTENT) {
                    persistHandle(info);
                }
            }
        }
        
        public HandleInfo getHandleForReconnect(String path) {
            HandleInfo info = handles.get(path);
            if (info != null && !info.isExpired()) {
                info.reconnecting = true;
                return info;
            }
            return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

         * @return a future that completes with the reconnected handle info or fails
         */
        public CompletableFuture<HandleInfo> reconnectHandle(String path, Exception cause) {
            HandleInfo info = handleManager.getHandleForReconnect(path);
    
            if (info == null) {
                return CompletableFuture.failedFuture(new IOException("No durable handle available for reconnection: " + path));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top