public class CacheStatsAverager extends Object
Constructor and Description |
---|
CacheStatsAverager(String name,
long hits,
long puts,
long misses,
long remove,
long loads,
double loadTime) |
Modifier and Type | Method and Description |
---|---|
CacheStatsAverager |
addAndSetCount(CacheStatsAverager b,
long count)
Returns a new
CacheStatsAverager with the actual stats added together. |
static CacheStatsAverager |
build(String name,
CacheStatistics stats) |
double |
getAverageHits() |
double |
getAverageLoads() |
double |
getAverageLoadTime() |
double |
getAverageMisses() |
double |
getAveragePuts() |
double |
getAverageRemoves() |
long |
getCount() |
double |
getHitRate() |
long |
getHits() |
long |
getLoads() |
double |
getLoadTime() |
long |
getMisses() |
String |
getName() |
long |
getPuts() |
long |
getRemoves() |
long |
getTotal() |
void |
setCount(long count) |
void |
setHits(long hits) |
void |
setLoadTime(double loadTime) |
void |
setMisses(long misses) |
void |
setName(String name) |
void |
setPuts(long puts) |
void |
setRemoves(long removes) |
void |
setTotal(long total) |
public static CacheStatsAverager build(@Nonnull String name, @Nonnull CacheStatistics stats)
public CacheStatsAverager addAndSetCount(CacheStatsAverager b, long count)
CacheStatsAverager
with the actual stats added together.CacheStatsAverager
public double getAverageHits()
public double getAveragePuts()
public double getAverageMisses()
public double getAverageRemoves()
public double getAverageLoadTime()
public double getAverageLoads()
public double getHitRate()
public String getName()
public long getHits()
public void setHits(long hits)
public long getPuts()
public void setPuts(long puts)
public long getMisses()
public void setMisses(long misses)
public long getRemoves()
public void setRemoves(long removes)
public long getLoads()
public double getLoadTime()
public void setLoadTime(double loadTime)
public long getTotal()
public void setTotal(long total)
public long getCount()
public void setCount(long count)
Copyright © 2002-2022 Atlassian. All Rights Reserved.