Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for HandleInfo (3.03 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

    /**
     * Information about a durable or persistent SMB handle.
     * This class holds all the necessary information to reconnect
     * a handle after network failures or server reboots.
     */
    public class HandleInfo implements Serializable {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * The full path to the file or directory associated with this handle
         */
        private final String path;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

        public void testFileReference() {
            HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 120000, null);
    
            assertNull(info.getFile());
    
            Object mockFile = new Object();
            info.setFile(mockFile);
            assertEquals(mockFile, info.getFile());
        }
    
        @Test
        public void testToString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

     */
    public class PersistentHandleManager {
    
        private static final Logger log = LoggerFactory.getLogger(PersistentHandleManager.class);
    
        private final ConcurrentHashMap<String, HandleInfo> handles;
        private final ConcurrentHashMap<HandleGuid, HandleInfo> guidToHandle;
        private final Path stateDirectory;
        private final ScheduledExecutorService scheduler;
        private final CIFSContext context;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

            // Create an expired handle
            HandleInfo expiredHandle = new HandleInfo("/test/file.txt", new HandleGuid(), new byte[16], HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            // Wait for expiration
            Thread.sleep(150);
    
            CompletableFuture<HandleInfo> future = reconnector.reconnectHandle(expiredHandle, new IOException("Network error"));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

        /**
         * Attempt to reconnect a specific handle
         * @param handleInfo the handle information
         * @param cause the original exception that triggered reconnection
         * @return a future that completes with the reconnected handle info or fails
         */
        public CompletableFuture<HandleInfo> reconnectHandle(HandleInfo handleInfo, Exception cause) {
            if (handleInfo == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. docs/smb3-features/02-persistent-handles-design.md

            HandleInfo info = guidToHandle.get(guid);
            if (info != null) {
                System.arraycopy(fileId, 0, info.fileId, 0, 16);
                if (info.type == HandleType.PERSISTENT) {
                    persistHandle(info);
                }
            }
        }
        
        public HandleInfo getHandleForReconnect(String path) {
            HandleInfo info = handles.get(path);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            manager.updateHandleFileId(guid, fileId);
    
            HandleInfo info = manager.getHandleByGuid(guid);
            assertArrayEquals(fileId, info.getFileId());
        }
    
        @Test
        public void testGetHandleForReconnect() {
            HandleGuid guid = manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 120000, null);
    
            HandleInfo info = manager.getHandleForReconnect("/test/file.txt");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top