Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for counters (0.21 sec)

  1. src/main/java/jcifs/audit/SecurityAuditLogger.java

            long currentWindow = System.currentTimeMillis() / rateLimitWindow;
            String windowKey = key + "_" + currentWindow;
    
            AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0));
            long currentCount = counter.incrementAndGet();
    
            // Clean up old windows periodically
            if (currentCount == 1) {
                cleanupOldRateLimitCounters(currentWindow);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  2. CLAUDE.md

    **Template Method**: `AbstractCrawlerClient`, `AbstractExtractor` - common logic with overrides
    **DI**: LastaFlute container with `@Resource` and XML config
    
    ### Core Principles
    
    **Thread Safety**:
    - `AtomicLong` for counters (`CrawlerContext.accessCount`)
    - `volatile` for status flags
    - Synchronized blocks for critical sections
    - Thread-local storage via `CrawlingParameterUtil`
    
    **Resource Management**:
    - `AutoCloseable` throughout
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            stats.recordRdmaSend(512, 500000); // 512B in 0.5ms
            stats.recordRdmaReceive(1536, 1500000); // 1.5KB in 1.5ms
            stats.recordError();
    
            // Verify counters
            assertEquals(1, stats.getRdmaReads(), "Should have 1 read operation");
            assertEquals(1, stats.getRdmaWrites(), "Should have 1 write operation");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

        private CrawlerPooledObjectFactory<TestComponent> factory;
        private StandardCrawlerContainer container;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
    
            // Reset counters before each test
            TestComponent.resetCounter();
            SingletonTestComponent.resetInstanceCount();
            CloseableTestComponent.resetCounters();
    
            // Initialize container with test components
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

                    openStateStartTime.set(0);
                }
    
                if (newState == State.OPEN) {
                    openStateStartTime.set(System.currentTimeMillis());
                }
    
                // Reset counters based on transition
                switch (newState) {
                case CLOSED:
                    failureCount.set(0);
                    successCount.set(0);
                    halfOpenAttempts.set(0);
                    break;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            long now = System.currentTimeMillis();
            lastFailureTimes.entrySet().removeIf(entry -> now - entry.getValue() > FAILURE_RECOVERY_TIME * 2);
    
            // Clean up old consecutive failure counters
            consecutiveFailures.entrySet().removeIf(entry -> {
                String key = entry.getKey();
                Long lastFailure = lastFailureTimes.get(key);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // For GCM, last 4 bytes should contain incrementing counter
            ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            int counter1 = buffer1.getInt();
            int counter2 = buffer2.getInt();
    
            assertEquals(counter1 + 1, counter2, "Counter should increment between nonces");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/PacLogonInfo.java

                    }
                    extraSidAtts = new PacSidAttributes[extraSidCount];
                    final int[] pointers = new int[extraSidCount];
                    final int[] attributes = new int[extraSidCount];
                    for (int i = 0; i < extraSidCount; i++) {
                        pointers[i] = pacStream.readInt();
                        attributes[i] = pacStream.readInt();
                    }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SecureKeyManager.java

                // If we need more bytes, hash again with counter
                int counter = 1;
                while (derived.length > hash.length * counter) {
                    md.update(input);
                    md.update((byte) counter);
                    hash = md.digest();
                    int copyLen = Math.min(length - (hash.length * counter), hash.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                buffer.putInt((int) counter);
            } else {
                // SMB 3.0/3.0.2 CCM: Counter-based approach as per SMB3 specification
                final long counter = this.nonceCounter.incrementAndGet();
                final ByteBuffer buffer = ByteBuffer.wrap(nonce);
                buffer.order(java.nio.ByteOrder.LITTLE_ENDIAN);
                buffer.putLong(counter);
                // Remaining bytes (if any) stay zero-padded
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top