Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCacheStatistics (0.05 sec)

  1. src/main/java/jcifs/smb1/smb1/BufferCache.java

        }
    
        /**
         * Get current cache statistics for monitoring
         * @return formatted statistics string
         */
        public static String getCacheStatistics() {
            return String.format("BufferCache: queued=%d, max=%d, utilization=%.1f%%", queueSize.get(), MAX_BUFFERS,
                    (queueSize.get() * 100.0 / MAX_BUFFERS));
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            assertEquals(threadCount * operationsPerThread, allocations.get());
            assertEquals(threadCount * operationsPerThread, releases.get());
    
            // Verify cache statistics
            String stats = BufferCache.getCacheStatistics();
            assertNotNull(stats, "Cache statistics should be available");
            System.out.println("Buffer Cache Stats: " + stats);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top