public class CacheStatisticsSource extends Object implements StatisticsSource, com.escenic.jmx.CacheStatisticsSourceMXBean, StatusSource
Constructor and Description |
---|
CacheStatisticsSource() |
Modifier and Type | Method and Description |
---|---|
long |
getAdds() |
long |
getAges() |
long |
getAverageIdleTimeSinceLastThrow() |
long |
getAverageIdleTimeWhenThrown() |
long |
getClears() |
long |
getExpires() |
double |
getHitRatio() |
long |
getHits() |
long |
getLastThrow() |
Date |
getlastThrowAsDate() |
long |
getMisses() |
long |
getPushes() |
long |
getRemoves() |
String |
getReport(String type)
Return a report for this status
|
Number |
getStatistic(String pStatisticKey)
The different statistics metrics of the implementing class.
|
Set<String> |
getStatisticKeys()
The keys that the metrics are available under.
|
long |
getTimeSinceLastThrow() |
long |
getTotalTime() |
String |
getType() |
long |
getUpdates() |
void |
reset()
Reset any counters
|
public Number getStatistic(String pStatisticKey)
StatisticsSource
getStatistic
in interface StatisticsSource
pStatisticKey
- the key of the metric wanted. See StatisticsSource.getStatisticKeys()
for a list of valid keys.StatisticsSource.getStatisticKeys()
public Set<String> getStatisticKeys()
StatisticsSource
getStatisticKeys
in interface StatisticsSource
Set
of String
keys. It will
contain at least one key.StatisticsSource.getStatistic(String)
public long getHits()
getHits
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getMisses()
getMisses
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getExpires()
getExpires
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getPushes()
getPushes
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getUpdates()
public long getAdds()
getAdds
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getClears()
getClears
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getRemoves()
getRemoves
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getLastThrow()
getLastThrow
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public Date getlastThrowAsDate()
public long getAges()
getAges
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getTotalTime()
getTotalTime
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public String getType()
public double getHitRatio()
getHitRatio
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getAverageIdleTimeWhenThrown()
getAverageIdleTimeWhenThrown
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getAverageIdleTimeSinceLastThrow()
getAverageIdleTimeSinceLastThrow
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public long getTimeSinceLastThrow()
getTimeSinceLastThrow
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
public String getReport(String type)
StatusSource
getReport
in interface StatusSource
public void reset()
StatusSource
reset
in interface com.escenic.jmx.CacheStatisticsSourceMXBean
reset
in interface StatusSource
© 1998- 2018 Stibo DX