Examples of averageLoadPenalty()


Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

    subtree.addInt("loadSuccessCount", stats.loadSuccessCount());
    subtree.addInt("missCount", stats.missCount());
    subtree.addInt("requestCount", stats.requestCount());
    subtree.addInt("totalLoadTime", stats.totalLoadTime());

    subtree.addFloat("averageLoadPenalty", stats.averageLoadPenalty());
    subtree.addFloat("hitRate", stats.hitRate());
    subtree.addFloat("loadExceptionRate", stats.loadExceptionRate());
    subtree.addFloat("missRate", stats.missRate());
  }
}
View Full Code Here

Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

          "D %-"+nw+"s|%6s %6s %7s| %7s |%4s %4s|\n",
          entry.getKey(),
          count(cache.size()),
          count(disk.size()),
          bytes(disk.space()),
          duration(stat.averageLoadPenalty()),
          percent(stat.hitCount(), stat.requestCount()),
          percent(disk.hitCount(), disk.requestCount())));
    }
    stdout.print('\n');
View Full Code Here

Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

          "  %-"+nw+"s|%6s %6s %7s| %7s |%4s %4s|\n",
          entry.getKey(),
          count(cache.size()),
          "",
          "",
          duration(stat.averageLoadPenalty()),
          percent(stat.hitCount(), stat.requestCount()),
          ""));
    }
  }
View Full Code Here

Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

      CacheStats cacheStats = cacheResource.getCacheStats().minus(relativeCacheStats);

      stringBuilder.append(String.format("Total succesful loaded values: %d %n", cacheStats.loadSuccessCount()));
      stringBuilder.append(String.format("Total requests: %d %n", cacheStats.requestCount()));
      stringBuilder.append(String.format("Hits ratio: %d/%d - %.3f %n", cacheStats.hitCount(), cacheStats.missCount(), cacheStats.hitRate()));
      stringBuilder.append(String.format("Average time spent loading new values (nanoseconds): %.3f %n", cacheStats.averageLoadPenalty()));
      stringBuilder.append(String.format("Number of cache evictions: %d %n", cacheStats.evictionCount()));

      return stringBuilder.toString();
    }
View Full Code Here

Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

        @Override
        public void run() {
          CacheStats cacheStats = cacheResource.getCacheStats().minus(relativeCacheStats);

          String csvStats = String.format("%.3f, %.3f, %d %n", cacheStats.hitRate(), cacheStats.averageLoadPenalty(), cacheStats.evictionCount());
          try {
            com.google.common.io.Files.append(csvStats, cacheLog, Charset.defaultCharset());
          } catch (IOException e) {
          }
        }
View Full Code Here

Examples of com.google.common.cache.CacheStats.averageLoadPenalty()

            log.debug("\t\t- eviction count : {}", cacheStats.evictionCount());
            log.debug("\t\t- load count : {}", cacheStats.loadCount());
            log.debug("\t\t- load success count : {}", cacheStats.loadSuccessCount());
            log.debug("\t\t- load exception count : {}", cacheStats.loadExceptionCount());
            log.debug("\t\t- total load time : {}", cacheStats.totalLoadTime());
            log.debug("\t\t- average load penalty : {}", cacheStats.averageLoadPenalty());
            log.debug("");
            log.debug("");
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.