Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for circuit (0.05 sec)

  1. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

        }
    
        @Test
        public void testCircuitResetsAfterTimeout() throws Exception {
            // Open the circuit
            circuitBreaker.trip();
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Wait for reset timeout
            Thread.sleep(1100);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SmbCircuitBreaker.java

        /**
         * Create a circuit breaker with default settings
         *
         * @param name circuit breaker name for logging
         */
        public SmbCircuitBreaker(String name) {
            this(name, 5, 3, 60000, 3, false, false, 100);
        }
    
        /**
         * Create a circuit breaker with custom settings
         *
         * @param name circuit breaker name for logging
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SimpleCircuitBreaker.java

        /**
         * Creates a simple circuit breaker with default settings
         *
         * @param name the circuit breaker name
         */
        public SimpleCircuitBreaker(String name) {
            this(name, 5, 3, 30000L); // 5 failures, 3 successes, 30 second timeout
        }
    
        /**
         * Creates a simple circuit breaker
         *
         * @param name the circuit breaker name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

        }
    
        @Test
        @DisplayName("Test circuit closes after success threshold in HALF_OPEN")
        void testCircuitClosesAfterSuccessThreshold() throws Exception {
            // Open the circuit
            circuitBreaker.tripBreaker();
    
            // Wait for timeout
            Thread.sleep(150);
    
            // Two successful calls should close the circuit
            circuitBreaker.call(() -> "success1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM);
    
                // Capture the ReadAndX request; throw to short-circuit network
                doAnswer(inv -> {
                    throw new SmbException("short-circuit");
                }).when(mockTree)
                        .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SSPContextTest.java

            void testNoMicCalculationWhenIntegrityUnsupported() throws Exception {
                // Only stub supportsIntegrity - isEstablished won't be called due to short-circuit
                when(mockCtx.supportsIntegrity()).thenReturn(false);
    
                // A small consumer that only uses MIC if advertised as available
                byte[] data = new byte[] { 1, 2 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Native LAN manager name */
        String NATIVE_LANMAN = Config.getProperty("jcifs.smb1.smb.client.nativeLanMan", "jCIFS");
        /** Virtual circuit number */
        int VC_NUMBER = 1;
        /** Null transport instance */
        SmbTransport NULL_TRANSPORT = new SmbTransport(null, 0, null, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. cmd/utils.go

    }
    
    func lcp(strs []string, pre bool) string {
    	// short-circuit empty list
    	if len(strs) == 0 {
    		return ""
    	}
    	xfix := strs[0]
    	// short-circuit single-element list
    	if len(strs) == 1 {
    		return xfix
    	}
    	// compare first to rest
    	for _, str := range strs[1:] {
    		xfixl := len(xfix)
    		strl := len(str)
    		// short-circuit empty strings
    		if xfixl == 0 || strl == 0 {
    			return ""
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  9. src/main/java/jcifs/Configuration.java

         *
         * @return socket timeout for netbios connections, in milliseconds
         */
        int getNetbiosSoTimeout();
    
        /**
         * Gets the virtual circuit number for SMB connections
         *
         * @return virtual circuit number to use
         */
        int getVcNumber();
    
        /**
         *
         * Property {@code jcifs.smb.client.capabilities} (int)
         *
         * @return custom capabilities
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertFalse(result);
            assertEquals(1, chain1.changePasswordCallCount);
            assertEquals(1, chain2.changePasswordCallCount);
            // allMatch may short-circuit, so chain3 might not be called
            assertTrue(chain3.changePasswordCallCount <= 1);
        }
    
        // Test delete with no chains
        public void test_delete_noChains() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
Back to top