congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CacheStats.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
com.google.common.cache.CacheStats

Best Java code snippets using com.google.common.cache.CacheStats.toString (Showing top 17 results out of 315)

origin: Codecademy/EventHub

public String getVarz(int indentation) {
 String indent  = new String(new char[indentation]).replace('\0', ' ');
 return String.format(
   indent + "directory: %s\n" +
   indent + "buffer: %s",
   directory, buffers.stats().toString());
}
origin: apache/incubator-gobblin

public void logCacheStatistics() {
 log.info(this.fileStatusCache.stats().toString());
}
origin: Codecademy/EventHub

 @Override
 public String getVarz(int indentation) {
  String indent  = new String(new char[indentation]).replace('\0', ' ');
  return String.format(
    "%s\n\n" +
    indent + this.getClass().getName() + "\n" +
    indent + "==================\n" +
    indent + "userCache: %s",
    super.getVarz(indentation), userCache.stats().toString());
 }
}
origin: Codecademy/EventHub

 @Override
 public String getVarz(int indentation) {
  String indent  = new String(new char[indentation]).replace('\0', ' ');
  return String.format(
    "%s\n\n" +
    indent + this.getClass().getName() + "\n" +
    indent + "==================\n" +
    indent + "eventCache: %s",
    super.getVarz(indentation), eventCache.stats().toString());
 }
}
origin: Jasig/uPortal

  @Override
  public String toString() {
    return getCachedCacheStats().toString();
  }
}
origin: org.jasig.portal/uPortal-rendering

  @Override
  public String toString() {
    return getCachedCacheStats().toString();
  }
}
origin: fi.vm.sade.organisaatio/organisaatio-ui-widgets

private void showCacheStatsIfNecessary() {
  if (showCacheStatsWhenLessThatCurrentTime < System.currentTimeMillis()) {
    // Next time show after one minute
    showCacheStatsWhenLessThatCurrentTime = System.currentTimeMillis() + 60000L;
    LOG.info("CACHE STATS: {}", organisaatioCache.stats().toString());
  }
}
origin: com.linkedin.gobblin/gobblin-data-management

public void logCacheStatistics() {
 log.info(this.fileStatusCache.stats().toString());
}
origin: org.geoserver.community/gs-geofence

/** May be useful if an external peer doesn't want to use the guava dep. */
public String getStatsString() {
  return ruleCache.stats().toString();
}
origin: org.geoserver.extension/gs-geofence

/** May be useful if an external peer doesn't want to use the guava dep. */
public String getStatsString() {
  return ruleCache.stats().toString();
}
origin: org.apache.gobblin/gobblin-data-management

public void logCacheStatistics() {
 log.info(this.fileStatusCache.stats().toString());
}
origin: senbox-org/s1tbx

public String stats() {
  return cache.stats().toString();
}
origin: org.apache.brooklyn/brooklyn-core

  @Override
  public T apply(SshTool input) {
    T result = task.apply(input);
    if (LOG.isDebugEnabled()) {
      LOG.debug("{} invalidating all sshPoolCache entries: {}", SshMachineLocation.this, sshPoolCache.stats().toString());
    }
    sshPoolCache.invalidateAll();
    sshPoolCache.cleanUp();
    return result;
  }
};
origin: org.xworker/xworker_core

@SuppressWarnings("unchecked")
public static void logPrintStats(ActionContext actionContext){
  Thing self = actionContext.getObject("self");
  
  //获取缓存配置
  Thing cacheThing = (Thing) self.doAction("getCacheThing", actionContext);
  
  //获取缓存对象
  LoadingCache<Object, Object> cache = (LoadingCache<Object, Object>) cacheThing.doAction("getCache", actionContext);	
  logger.info(cache.stats().toString());
}
 
origin: OneBusAway/onebusaway-application-modules

public void logStatus() {
 _log.info(getCache().stats().toString() + "; disabled=" + _disabled
   + "; useMemcached=" + useMemcached
   + "; Local Size=" + _cache.size()
   + "; Memcached Size=" + (memcache==null?"[null]":memcache.getStats("sizes")));
}
origin: yandex/graphouse

@Override
public void run() {
  log.info("Metric search thread started");
  while (!Thread.interrupted()) {
    try {
      log.info(
        "Actual metrics count = " + metricTree.metricCount() + ", dir count: " + metricTree.dirCount()
          + ", cache stats: " + dirContentProvider.stats().toString()
      );
      loadNewMetrics();
      saveUpdatedMetrics();
      metricSearchUnit.ok();
    } catch (Exception e) {
      log.error("Failed to update metric search", e);
      metricSearchUnit.critical("Failed to update metric search: " + e.getMessage(), e);
    }
    try {
      Thread.sleep(TimeUnit.SECONDS.toMillis(saveIntervalSeconds));
    } catch (InterruptedException ignored) {
    }
  }
  log.info("Metric search thread finished");
}
origin: org.xworker/xworker_core

@SuppressWarnings("unchecked")
public static void printStatus(ActionContext actionContext){
  Thing self = actionContext.getObject("self");
  
  //是否是引用,如果是使用引用
  String refCache = self.getStringBlankAsNull("refCache");
  if(refCache != null){
    Thing cacheThing = World.getInstance().getThing(refCache);
    cacheThing.doAction("printStatus", actionContext);
  }
  
  LoadingCache<Object, Object> cache = (LoadingCache<Object, Object>) self.doAction("getCache", actionContext);
  System.out.println(cache.stats().toString());
}
 
com.google.common.cacheCacheStatstoString

Popular methods of CacheStats

  • hitCount
    Returns the number of times Cache lookup methods have returned a cached value.
  • evictionCount
    Returns the number of times an entry has been evicted. This count does not include manual Cache#inva
  • missCount
    Returns the number of times Cache lookup methods have returned an uncached (newly loaded) value, or
  • loadExceptionCount
    Returns the number of times Cache lookup methods threw an exception while loading a new value. This
  • totalLoadTime
    Returns the total number of nanoseconds the cache has spent loading new values. This can be used to
  • loadSuccessCount
    Returns the number of times Cache lookup methods have successfully loaded a new value. This is alway
  • requestCount
    Returns the number of times Cache lookup methods have returned either a cached or uncached value. Th
  • hitRate
    Returns the ratio of cache requests which were hits. This is defined as hitCount / requestCount, or
  • loadCount
    Returns the total number of times that Cache lookup methods attempted to load new values. This inclu
  • <init>
    Constructs a new CacheStats instance.Five parameters of the same type in a row is a bad thing, but t
  • missRate
    Returns the ratio of cache requests which were misses. This is defined as missCount / requestCount,
  • averageLoadPenalty
    Returns the average time spent loading new values. This is defined as totalLoadTime / (loadSuccessCo
  • missRate,
  • averageLoadPenalty,
  • loadExceptionRate,
  • minus,
  • plus

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now