Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for recordStatus (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go

    	if !rl.statusRecorded {
    		rl.recordStatus(http.StatusOK) // Default if WriteHeader hasn't been called
    	}
    	if rl.captureErrorOutput {
    		rl.Addf("logging error output: %q\n", string(b))
    	}
    	return rl.w.Write(b)
    }
    
    // WriteHeader implements http.ResponseWriter.
    func (rl *respLogger) WriteHeader(status int) {
    	rl.recordStatus(status)
    	rl.w.WriteHeader(status)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 10:10:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

        }
      }
    
      /** Parse recordStats */
      static class RecordStatsParser implements ValueParser {
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @CheckForNull String value) {
          checkArgument(value == null, "recordStats does not take values");
          checkArgument(spec.recordStats == null, "recordStats already set");
          spec.recordStats = true;
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 22 14:27:44 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilderSpec.java

        }
      }
    
      /** Parse recordStats */
      static class RecordStatsParser implements ValueParser {
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @CheckForNull String value) {
          checkArgument(value == null, "recordStats does not take values");
          checkArgument(spec.recordStats == null, "recordStats already set");
          spec.recordStats = true;
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 22 14:27:44 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheManualTest.java

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    public class CacheManualTest extends TestCase {
    
      public void testGetIfPresent() {
        Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
        CacheStats stats = cache.stats();
        assertEquals(0, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultInMemoryCacheDecoratorFactory.java

            LoggingEvictionListener evictionListener = new LoggingEvictionListener(cacheId, maxSize, LOG);
            final CacheBuilder<Object, Object> cacheBuilder = CacheBuilder.newBuilder().maximumSize(maxSize).recordStats().removalListener(evictionListener);
            Cache<Object, Object> inMemoryCache = cacheBuilder.build();
            evictionListener.setCache(inMemoryCache);
            return inMemoryCache;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:36 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/software/resources/src/main/java/org/gradle/internal/resource/transfer/DefaultExternalResourceConnector.java

    import java.util.Map;
    import java.util.concurrent.atomic.AtomicInteger;
    
    public class DefaultExternalResourceConnector implements ExternalResourceConnector {
        private static final String SYSPROP_KEY = "gradle.externalresources.recordstats";
        private final static ExternalResourceAccessStats.Mode STATS_MODE = ExternalResourceAccessStats.Mode.valueOf(System.getProperty(SYSPROP_KEY, "none"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Cache.java

       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
       * created using {@link CacheBuilder} only does so if the {@link CacheBuilder#recordStats} method
       * was called. If statistics are not being recorded, a {@code CacheStats} instance with zero for
       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Cache.java

       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
       * created using {@link CacheBuilder} only does so if the {@link CacheBuilder#recordStats} method
       * was called. If statistics are not being recorded, a {@code CacheStats} instance with zero for
       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
              @Override
              public LoadingCache<Object, Object> apply(CacheBuilder<Object, Object> builder) {
                return builder.recordStats().build(identityLoader());
              }
            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        // This is trickier than expected. We plan to put 15 values in each of these (WARMUP_MIN to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                  computeCount.incrementAndGet();
                  return key;
                }
              }
            };
        final LoadingCache<String, String> cache =
            CacheBuilder.newBuilder()
                .recordStats()
                .concurrencyLevel(2)
                .expireAfterWrite(100, MILLISECONDS)
                .removalListener(removalListener)
                .maximumSize(5000)
                .build(countingIdentityLoader);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 03 20:10:02 UTC 2023
    - 23.2K bytes
    - Viewed (0)
Back to top