Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for expired (0.12 sec)

  1. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            // After update, should not be expired with long timeout
            assertFalse(registration.isExpired(60000));
    
            // Verify heartbeat was actually updated
            assertTrue(registration.getLastHeartbeat() > initialTime);
        }
    
        @Test
        void testExpiration() throws InterruptedException {
            // Registration should not be expired initially with long timeout
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessRegistration.java

            return heartbeatFailures;
        }
    
        /**
         * Checks if this registration has expired based on the timeout.
         *
         * @param timeoutMs the timeout in milliseconds
         * @return true if the registration is expired
         */
        public boolean isExpired(long timeoutMs) {
            return System.currentTimeMillis() - lastHeartbeat > timeoutMs;
        }
    
        // Getters and setters
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

        }
    
        public void test_expired_method_exists() throws Exception {
            assertNotNull("expired method should exist", SystemMonitorTarget.class.getMethod("expired"));
        }
    
        public void test_expired_method_can_be_called() {
            // Instead of directly calling expired() which may fail due to system dependencies
            // in test environments, we test that the method exists and can be invoked
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. cmd/data-scanner_test.go

    		defer wg.Done()
    		// signal the calling goroutine that the worker is ready tor receive tasks
    		close(readyCh)
    		var expired []ObjectToDelete
    		for t := range taskCh {
    			switch v := t.(type) {
    			case noncurrentVersionsTask:
    				expired = append(expired, v.versions...)
    			case expiryTask:
    				expired = append(expired, ObjectToDelete{
    					ObjectV: ObjectV{
    						ObjectName: v.objInfo.Name,
    						VersionID:  v.objInfo.VersionID,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

            try {
                // Clean up expired handles
                handles.entrySet().removeIf(entry -> {
                    HandleInfo info = entry.getValue();
                    if (info.isExpired() && !info.isReconnecting()) {
                        guidToHandle.remove(info.getCreateGuid());
                        removePersistedHandle(info);
                        log.debug("Removed expired handle: {}", info.getPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessClient.java

        }
    
        /**
         * Checks for expired registrations based on heartbeat timeouts.
         */
        private void checkHeartbeats() {
            long timeout = context.getConfig().getWitnessHeartbeatTimeout();
    
            for (WitnessRegistration registration : registrations.values()) {
                if (registration.isExpired(timeout)) {
                    log.warn("Witness registration expired: {}", registration.getRegistrationId());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  7. cmd/postpolicyform_test.go

    		name    string
    		fv      formValues
    		expired bool
    		wantErr string
    	}
    
    	// Test case just contains fields we override from defaultFormVals.
    	testCases := []testCase{
    		{
    			name:    "happy path no errors",
    			fv:      defaultFormVals.Clone(),
    			wantErr: "",
    		},
    		{
    			name:    "expired policy document",
    			fv:      defaultFormVals.Clone(),
    			expired: true,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            // Should still not be expired
            assertFalse(auth.isExpired());
    
            // Wait for original TTL to pass
            Thread.sleep(600);
    
            // Should still not be expired because we reset
            assertFalse(auth.isExpired());
    
            // Wait for the full TTL since reset
            Thread.sleep(500);
    
            // Now it should be expired
            assertTrue(auth.isExpired());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            assertEquals(newState, entry.getLeaseState());
        }
    
        @Test
        @DisplayName("Should clean up expired leases with custom timeout")
        void testCleanupExpiredLeasesWithCustomTimeout() throws InterruptedException {
            String path1 = "/share/expired1.txt";
            String path2 = "/share/expired2.txt";
    
            Smb2LeaseKey key1 = leaseManager.requestLease(path1, Smb2LeaseState.SMB2_LEASE_READ_CACHING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

            this.leaseKey = leaseKey;
            this.reconnecting = false;
        }
    
        /**
         * Check if this handle has expired
         * @return true if expired
         */
        public boolean isExpired() {
            if (type == HandleType.PERSISTENT) {
                return false; // Persistent handles don't expire
            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top