Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 86 for counters (1.19 sec)

  1. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

            @Test
            @DisplayName("Should handle typical Windows NTFS configuration")
            void shouldHandleTypicalNTFSConfiguration() throws SMBProtocolDecodingException {
                // Given - typical NTFS: 4KB clusters (8 sectors * 512 bytes)
                long totalClusters = 26214400L; // 100GB / 4KB
                long freeClusters = 13107200L; // 50GB / 4KB
    
                ByteBuffer buffer = ByteBuffer.allocate(32);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                int size = request.size();
                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @ParameterizedTest
            @DisplayName("Should calculate size for various lock counts")
            @ValueSource(ints = { 0, 1, 2, 5, 10, 20, 50, 100 })
            void testSizeWithVariousLockCounts(int lockCount) {
                Smb2Lock[] locks = new Smb2Lock[lockCount];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/util/StringUtilTest.java

            String result = StringUtil.join(",", str, builder, buffer);
            assertEquals("string,builder,buffer", result);
        }
    
        @ParameterizedTest
        @DisplayName("Should handle various element counts")
        @ValueSource(ints = { 1, 2, 5, 10, 20, 50, 100 })
        void testJoinWithVariousElementCounts(int count) {
            CharSequence[] elements = new CharSequence[count];
            for (int i = 0; i < count; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            int ctxOffsetFromHeader = 256; // arbitrary aligned location beyond header
            byte[] baseBody = buildCreateBodyWithContext(fileId, ctxOffsetFromHeader);
    
            // Build actual context bytes matching the pointers inside baseBody
            byte[] ctx = new byte[0x40];
            int ci = 0;
            SMBUtil.writeInt4(0, ctx, ci); // Next = 0
            ci += 4;
            SMBUtil.writeInt2(0x10, ctx, ci); // NameOffset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            raf.writeShort(1);
            raf.writeChar('A');
            raf.writeInt(1);
            raf.writeLong(1L);
            raf.writeFloat(1.0f);
            raf.writeDouble(1.0);
    
            // Verify length counts - using times() to check exact counts
            verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(2)); // short and char
            verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(4)); // int and float
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                        }, isFailure);
                        fail("Should have thrown exception");
                    } catch (CIFSException e) {
                        // Expected - exception is thrown but not counted as failure
                    }
                }
    
                // NOTE: Implementation behavior - custom predicate may not prevent all state changes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            rateLimiter.recordFailure(username, ip);
    
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordFailure(username, ip);
    
            // Success should reset counter
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordSuccess(username, ip);
    
            // Should be able to fail 3 more times before lockout
            for (int i = 0; i < 3; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                final String language = locale.getLanguage();
                final String country = locale.getCountry();
                if (StringUtil.isNotBlank(language)) {
                    if (StringUtil.isNotBlank(country)) {
                        return language.toLowerCase(Locale.ROOT) + "-" + country.toLowerCase(Locale.ROOT);
                    }
                    return language.toLowerCase(Locale.ROOT);
                }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 88.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

         */
        public static class StatsObject extends LinkedHashMap<String, Long> {
            /** Serial version UID for serialization. */
            private static final long serialVersionUID = 1L;
    
            /** Atomic counter for tracking reference count across multiple threads. */
            protected final AtomicInteger count;
    
            /**
             * Creates a new statistics object with the current timestamp as the begin time.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. README.md

    - **Flexible Text Processing**: Configurable converters and normalizers for text transformation
    - **OpenSearch Integration**: Seamless integration with OpenSearch/Elasticsearch clusters
    - **Asynchronous Operations**: Non-blocking suggestion requests with callback support
    - **Index Management**: Automatic index creation, switching, and maintenance
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Aug 31 03:31:14 UTC 2025
    - 12.1K bytes
    - Viewed (1)
Back to top