Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for requestsCount (0.09 sec)

  1. cmd/tier.go

    func (t *tierMetrics) logSuccess(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.success++
    	t.requestsCount[tier] = stat
    }
    
    func (t *tierMetrics) logFailure(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.failure++
    	t.requestsCount[tier] = stat
    }
    
    var (
    	// {minio_node}_{tier}_{ttlb_seconds_distribution}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheStats.java

       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have returned an uncached (newly
       * loaded) value, or null. Multiple concurrent calls to {@link Cache} lookup methods on an absent
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheStats.java

       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have returned an uncached (newly
       * loaded) value, or null. Multiple concurrent calls to {@link Cache} lookup methods on an absent
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        println("\n\nRequest to ${server1.inetSocketAddress}")
        executeSynchronously(request)
          .assertSuccessful()
          .assertCode(200)
    
        println("server1.requestCount ${server1.requestCount}")
        assertThat(server1.requestCount).isEqualTo(1)
    
        // Shutdown the proxy server
        if (cleanShutdown) {
          server1.shutdown()
        }
    
        // Now redirect with DNS to proxyServer2
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheStatsTest.java

     *
     * @author Charles Fry
     */
    public class CacheStatsTest extends TestCase {
    
      public void testEmpty() {
        CacheStats stats = new CacheStats(0, 0, 0, 0, 0, 0);
        assertEquals(0, stats.requestCount());
        assertEquals(0, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(1.0);
        assertEquals(0, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

            final ResponseData response = client.execute(RequestDataBuilder.newRequestData().get().url(url).build());
            assertEquals(1, testListener.startCount);
            assertEquals(1, testListener.requestCount);
            assertEquals(0, testListener.exceptionCount);
            assertEquals(1, testListener.endCount);
            assertEquals(url, testListener.requestUrl);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

    import okhttp3.Protocol
    import org.junit.rules.ExternalResource
    
    class MockWebServer : ExternalResource(), Closeable {
      @ExperimentalOkHttpApi
      val delegate = mockwebserver3.MockWebServer()
    
      val requestCount: Int by delegate::requestCount
    
      var bodyLimit: Long by delegate::bodyLimit
    
      var serverSocketFactory: ServerSocketFactory? by delegate::serverSocketFactory
    
      var dispatcher: Dispatcher = QueueDispatcher()
        set(value) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

            corruptMetadata {
              // mess with cipher suite
              it.replace("TLS_", "SLT_")
            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.1") // cached
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(1)
    
        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. internal/http/server.go

    	inShutdown    uint32        // indicates whether the server is in shutdown or not
    	requestCount  int32         // counter holds no. of request in progress.
    }
    
    // GetRequestCount - returns number of request in progress.
    func (srv *Server) GetRequestCount() int {
    	return int(atomic.LoadInt32(&srv.requestCount))
    }
    
    // Init - init HTTP server
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        cache.getUnchecked(one);
        CacheStats stats = cache.stats();
        assertEquals(1, stats.requestCount());
        assertEquals(0, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(0.0);
        assertEquals(1, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(1.0);
        assertEquals(1, stats.loadCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top