Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for elapsed1 (0.22 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            final long elapsed1 = (System.nanoTime() - start1) / 1000000;
            assertTrue("First access should not delay", elapsed1 < 50);
    
            // Second access to same host - should delay
            q.setUrl("http://example.com/page2");
            final long start2 = System.nanoTime();
            controller.delayBeforeProcessing();
            final long elapsed2 = (System.nanoTime() - start2) / 1000000;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java

            /**
             * Default constructor for TimeOfDayInfo.
             */
            public TimeOfDayInfo() {
            }
    
            /**
             * The time elapsed since 00:00:00, January 1, 1970 GMT.
             */
            public int elapsedt;
            /**
             * The number of milliseconds from the start of the current second.
             */
            public int msecs;
            /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalControllerTest.java

            controller.setDelayMillisAfterProcessing(0L);
    
            final long start = System.nanoTime();
            controller.delayAfterProcessing();
            final long elapsed = (System.nanoTime() - start) / 1000000;
    
            assertTrue("No delay expected", elapsed < 50); // Should be nearly instant
        }
    
        /**
         * Test delayAfterProcessing with actual delay
         */
        public void test_delayAfterProcessing_withDelay() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/srvsvc.java

            /**
             * Default constructor for TimeOfDayInfo.
             */
            public TimeOfDayInfo() {
            }
    
            /**
             * The time elapsed since 00:00:00, January 1, 1970 GMT.
             */
            public int elapsedt;
            /**
             * The number of milliseconds from the start of the current second.
             */
            public int msecs;
            /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.idl

    	} ServerInfo;
    
    	[op(0x15)]
    	int ServerGetInfo([in,string,unique] wchar_t *servername,
    			[in] int level,
    			[out,switch_is(level)] ServerInfo *info);
    
    	typedef struct {
    		uint32_t elapsedt;  
    		uint32_t msecs;  
    		uint32_t hours;  
    		uint32_t mins;  
    		uint32_t secs;  
    		uint32_t hunds;
    		uint32_t timezone;  
    		uint32_t tinterval;  
    		uint32_t day;  
    		uint32_t month;  
    		uint32_t year;  
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        public boolean isExpired() {
            if (type == HandleType.PERSISTENT) {
                return false; // Persistent handles don't expire
            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
        /**
         * Update the last access time
         */
        public void updateAccessTime() {
            this.lastAccessTime = System.currentTimeMillis();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbOperationException.java

        public long getNtStatus() {
            return ntStatus;
        }
    
        public String getServerMessage() {
            return serverMessage;
        }
    
        /**
         * Get elapsed time since operation started
         *
         * @return elapsed time in milliseconds
         */
        public long getElapsedTime() {
            return System.currentTimeMillis() - operationStartTime;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/msrpc/srvsvc.idl

    	} ServerInfo;
    
    	[op(0x15)]
    	int ServerGetInfo([in,string,unique] wchar_t *servername,
    			[in] int level,
    			[out,switch_is(level)] ServerInfo *info);
    
    	typedef struct {
    		uint32_t elapsedt;  
    		uint32_t msecs;  
    		uint32_t hours;  
    		uint32_t mins;  
    		uint32_t secs;  
    		uint32_t hunds;
    		uint32_t timezone;  
    		uint32_t tinterval;  
    		uint32_t day;  
    		uint32_t month;  
    		uint32_t year;  
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertFalse(exception.isAuthenticationError());
            assertFalse(exception.isFileSystemError());
            assertTrue(exception.isTransientError());
        }
    
        @Test
        @DisplayName("Should track elapsed time")
        void testElapsedTime() throws InterruptedException {
            // Given
            exception = new SmbOperationException(SmbOperationException.ErrorCode.BUSY, "Server busy");
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/HostIntervalController.java

     * The delay is calculated based on the configured delayMillisBeforeProcessing parameter.
     * If the time since the last request to the host is less than the configured delay,
     * the thread waits until the delay has elapsed.
     * This class is thread-safe.
     * The cache automatically evicts entries after 1 hour of inactivity to prevent memory leaks.
     */
    public class HostIntervalController extends DefaultIntervalController {
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top