Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for safety (0.03 sec)

  1. src/test/java/jcifs/SmbTreeTest.java

                return null;
            }).when(smbTree).close();
    
            smbTree.close();
    
            verify(smbTree).close();
        }
    
        /**
         * Test for unwrap preserving type safety.
         * Verifies that unwrap maintains type safety at compile time.
         */
        @Test
        void testUnwrap_typeSafety() {
            CustomSmbTree customTree = mock(CustomSmbTree.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. docs/distributed/SIZING.md

    If one or more drives are offline at the start of a PutObject or NewMultipartUpload operation the object will have additional data
    protection bits added automatically to provide the regular safety for these objects up to 50% of the number of drives.
    This will allow normal write operations to take place on systems that exceed the write tolerance.
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/LogStreamTest.java

            // but PrintStream doesn't throw exceptions on write after close
        }
    
        @Test
        void testConcurrentAccess() throws InterruptedException {
            // Test thread safety of getInstance
            LogStream.setInstance(testStream);
    
            final LogStream[] instances = new LogStream[10];
            Thread[] threads = new Thread[10];
    
            for (int i = 0; i < threads.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            System.out.printf("  Avg tree operation time: %.2f ns%n", avgOpTimeNs);
    
            // Verify thread safety and performance
            assertTrue(exceptions.isEmpty(), "No exceptions should occur with thread-safe collections: " + exceptions);
            assertEquals(threadCount * operationsPerThread, treeOperations.get());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. api/maven-api-model/src/main/java/org/apache/maven/api/model/package-info.java

     * <p>
     * This package contains the data model classes that represent the structure of Maven POM files.
     * These classes are immutable to ensure thread safety and prevent unintended modifications.
     * The root class is {@link org.apache.maven.api.model.Model}, which represents the entire POM.
     * <p>
     * Key components include:
     * <ul>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                final int flags = oldFlags | ServerMessageBlock2.SMB2_FLAGS_SIGNED;
                SMBUtil.writeInt4(flags, data, offset + 16);
    
                // Create new Mac instance for thread safety without blocking other operations
                Mac mac;
                try {
                    mac = createMacInstance();
                } catch (GeneralSecurityException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

     * <pre>
     * {@code
     * String escapedXml = XmlUtil.escapeXml("<tag>value</tag>");
     * Map<String, Object> dataMap = XmlUtil.getDataMap(accessResultData);
     * }
     * </pre>
     *
     * <h2>Thread Safety:</h2>
     * <p>
     * This class is thread-safe as it does not maintain any state.
     * </p>
     *
     * <h2>Dependencies:</h2>
     * <ul>
     *   <li>org.apache.logging.log4j.Logger</li>
     *   <li>org.apache.logging.log4j.LogManager</li>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
            @DisplayName("Should maintain thread safety")
            void testThreadSafety() throws InterruptedException {
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                boolean[] success = new boolean[threadCount];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            assertEquals(0, stats.consecutiveFailures);
            assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState());
        }
    
        @RepeatedTest(10)
        @DisplayName("Test thread safety")
        void testThreadSafety() throws InterruptedException {
            SimpleCircuitBreaker breaker = new SimpleCircuitBreaker("concurrent", 5, 3, 100);
            AtomicInteger successCount = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

     *   <li>{@link DataService} - The service for managing access results.</li>
     * </ul>
     *
     * <p>Each parameter is stored in a ThreadLocal variable to ensure thread safety.</p>
     *
     * <p>Usage example:</p>
     * <pre>
     * {@code
     * UrlQueue<?> urlQueue = CrawlingParameterUtil.getUrlQueue();
     * CrawlingParameterUtil.setUrlQueue(newUrlQueue);
     *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top