Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for circuit (0.03 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/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)
  3. 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)
  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. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

         */
        static boolean matchPattern(ArtifactRepository originalRepository, String pattern) {
            boolean result = false;
            String originalId = originalRepository.getId();
    
            // simple checks first to short circuit processing below.
            if (WILDCARD.equals(pattern) || pattern.equals(originalId)) {
                result = true;
            } else {
                // process the list
                String[] repos = pattern.split(",");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. 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)
  8. docs/features/interceptors.md

     * Permitted to short-circuit and not call `Chain.proceed()`.
     * Permitted to retry and make multiple calls to `Chain.proceed()`.
     * Can adjust Call timeouts using withConnectTimeout, withReadTimeout, withWriteTimeout.
    
    **Network Interceptors**
    
     * Able to operate on intermediate responses like redirects and retries.
     * Not invoked for cached responses that short-circuit the network.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

            } catch (SimpleCircuitBreaker.CircuitBreakerOpenException e) {
                // Log circuit breaker rejection
                auditLogger.logSecurityViolation("Circuit breaker open for SMB connection",
                        java.util.Map.of("address", address.getHostAddress(), "port", String.valueOf(port)));
                throw new IOException("Connection rejected by circuit breaker: " + e.getMessage(), e);
            } catch (RuntimeException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top