Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for HandleGuid (0.07 sec)

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

     * byte ordering for the individual components.
     */
    public class HandleGuid implements Serializable {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * The underlying UUID representing this handle GUID
         */
        private final UUID guid;
    
        /**
         * Create a new random handle GUID
         */
        public HandleGuid() {
            this.guid = UUID.randomUUID();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            this.createGuid = new HandleGuid();
        }
    
        /**
         * Create a new durable handle V2 request with specific GUID
         * @param timeoutMs the timeout in milliseconds
         * @param persistent true if this should be a persistent handle
         * @param createGuid the create GUID to use
         */
        public DurableHandleV2Request(long timeoutMs, boolean persistent, HandleGuid createGuid) {
            this.timeoutMs = timeoutMs;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

                new HandleGuid(new byte[20]); // Wrong length
            });
        }
    
        @Test
        public void testHandleGuidEqualsAndHashCode() {
            UUID uuid = UUID.randomUUID();
            HandleGuid guid1 = new HandleGuid(uuid);
            HandleGuid guid2 = new HandleGuid(uuid);
            HandleGuid guid3 = new HandleGuid();
    
            assertEquals(guid1, guid2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

    import jcifs.internal.smb2.lease.Smb2LeaseKey;
    import jcifs.internal.smb2.persistent.HandleGuid;
    import jcifs.internal.smb2.persistent.HandleInfo;
    import jcifs.internal.smb2.persistent.HandleType;
    
    /**
     * Test class for HandleInfo functionality
     */
    public class HandleInfoTest {
    
        private HandleGuid testGuid;
        private byte[] testFileId;
        private Smb2LeaseKey testLeaseKey;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. docs/smb3-features/02-persistent-handles-design.md

        
        @Test
        public void testHandleGuidGeneration() {
            HandleGuid guid1 = new HandleGuid();
            HandleGuid guid2 = new HandleGuid();
            
            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            
            // Test round-trip
            HandleGuid guid3 = new HandleGuid(guid1.toBytes());
            assertEquals(guid1, guid3);
        }
        
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

        }
    
        @Test
        public void testMultipleHandles() {
            HandleGuid guid1 = manager.requestDurableHandle("/test/file1.txt", HandleType.DURABLE_V2, 120000, null);
    
            HandleGuid guid2 = manager.requestDurableHandle("/test/file2.txt", HandleType.PERSISTENT, 0, new Smb2LeaseKey());
    
            assertEquals(2, manager.getHandleCount());
    
            HandleInfo info1 = manager.getHandleByGuid(guid1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

         * @param leaseKey the associated lease key (can be null)
         * @return the handle GUID
         */
        public HandleGuid requestDurableHandle(String path, HandleType type, long timeout, Smb2LeaseKey leaseKey) {
            HandleGuid guid = new HandleGuid();
    
            // Create handle info with empty file ID (will be populated after successful create response)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        private final String path;
    
        /**
         * The create GUID used to uniquely identify this handle for reconnection
         */
        private final HandleGuid createGuid;
    
        /**
         * The 16-byte file ID returned by the server for this handle
         */
        private final byte[] fileId;
    
        /**
         * The type of handle (DURABLE_V1, DURABLE_V2, or PERSISTENT)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

        @BeforeEach
        public void setUp() {
            MockitoAnnotations.openMocks(this);
            reconnector = new HandleReconnector(mockManager, 2, 50); // 2 retries, 50ms delay
    
            HandleGuid guid = new HandleGuid();
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) (i + 1);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

                    request.getFlags() & Smb2HandleCapabilities.SMB2_DHANDLE_FLAG_PERSISTENT);
        }
    
        @Test
        public void testDurableHandleV2RequestWithGuid() {
            HandleGuid guid = new HandleGuid();
            DurableHandleV2Request request = new DurableHandleV2Request(60000, false, guid);
    
            assertEquals(guid, request.getCreateGuid());
            assertEquals(60000, request.getTimeoutMs());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top