Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getStatistics (2 sec)

  1. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            assertEquals("success", result);
            assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState());
    
            SimpleCircuitBreaker.Statistics stats = circuitBreaker.getStatistics();
            assertEquals(1, stats.totalCalls);
            assertEquals(1, stats.totalSuccesses);
            assertEquals(0, stats.totalFailures);
            assertEquals(1.0, stats.successRate);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ResourceManager.java

            }, cleanupInterval, cleanupInterval, TimeUnit.MILLISECONDS);
        }
    
        /**
         * Get resource statistics
         *
         * @return map of statistics
         */
        public Map<String, Object> getStatistics() {
            long active = 0;
            long closed = 0;
    
            for (ResourceHolder holder : activeResources.values()) {
                if (holder.closed) {
                    closed++;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SimpleCircuitBreaker.java

                log.warn("Circuit breaker {} manually tripped", name);
            }
        }
    
        /**
         * Get circuit breaker statistics
         *
         * @return statistics
         */
        public Statistics getStatistics() {
            return new Statistics(name, getState(), totalCalls.get(), totalSuccesses.get(), totalFailures.get(), rejectedCalls.get(),
                    consecutiveFailures.get(), getSuccessRate());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/MultiChannelManager.java

            }
        }
    
        /**
         * Gets statistics for the multi-channel manager.
         *
         * @return channel statistics
         */
        public ChannelStatistics getStatistics() {
            return new ChannelStatistics(sessionChannels.size(),
                    sessionChannels.values().stream().mapToInt(ChannelGroup::getChannelCount).sum(), totalRequests.get(),
                    totalChannelsCreated.get());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/audit/SecurityAuditLogger.java

            }
        }
    
        /**
         * Get audit statistics
         *
         * @return map of event types to counts
         */
        public Map<EventType, Long> getStatistics() {
            Map<EventType, Long> stats = new HashMap<>();
            for (Map.Entry<EventType, AtomicLong> entry : eventCounters.entrySet()) {
                stats.put(entry.getKey(), entry.getValue().get());
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
Back to top