public class CacheStats extends AbstractStats
MB| Constructor and Description |
|---|
CacheStats()
Creates a new 'unnamed' cache stats object with default intervals.
|
CacheStats(java.lang.String aName,
Interval[] selectedIntervals)
Creates a new cachestats object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheFull()
Adds a cache full condition.
|
void |
addDelete()
Adds an object removal.
|
void |
addExpired()
Adds an expiration event.
|
void |
addFiltered()
Adds a filtered object.
|
void |
addGarbageCollected()
Adds a garbage collected object.
|
void |
addHit()
Adds a new cache-hit.
|
void |
addHitRequest()
Adds a request that was a hit.
|
void |
addRequest()
Adds a new cache request.
|
void |
addRollover()
Adds a rollover.
|
void |
addWrite()
Adds a write (new object) in the cache.
|
java.util.List<java.lang.String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
long |
getCacheFullCount(java.lang.String intervalName)
Returns the number of cache fulls in the specified interval.
|
long |
getDeletes(java.lang.String intervalName)
Returns the number of object deletion in a given interval.
|
long |
getExpired(java.lang.String intervalName)
Return number of expired objects.
|
double |
getFillRatio(java.lang.String intervalName)
Returns the fill ration of the cache in a given interval.
|
long |
getFiltered(java.lang.String intervalName)
Returns the number of filtered objects in a given interval.
|
long |
getGarbageCollected(java.lang.String intervalName)
Returns number of garbage collected objects in the given interval.
|
double |
getHitRatio(java.lang.String intervalName)
Returns this caches hit ratio.
|
long |
getHits(java.lang.String intervalName)
Returns the number of hits in a given interval.
|
java.lang.String |
getName()
This method returns the name of this set of statistical values.
|
long |
getRequests(java.lang.String intervalName)
Returns the number of requests in a given interval.
|
long |
getRolloverCount(java.lang.String intervalName)
Returns the number of cache rollovers in a given interval.
|
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
long |
getWrites(java.lang.String intervalName)
Returns the number of writes (new objects) in the cache int the given interval.
|
java.lang.String |
toStatsString(java.lang.String intervalName,
TimeUnit timeUnit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
addStatValues, createCallExecution, destroy, isEmpty, toStatsString, toStatsString, toStatsString, toStringpublic CacheStats()
public CacheStats(java.lang.String aName,
Interval[] selectedIntervals)
aName - selectedIntervals - public java.lang.String getName()
IStatsgetName in interface IStatsgetName in class AbstractStatspublic double getHitRatio(java.lang.String intervalName)
intervalName - the name of the target interval.public void addRequest()
public long getRequests(java.lang.String intervalName)
intervalName - the name of the target interval.public void addHit()
public long getHits(java.lang.String intervalName)
intervalName - the name of the target interval.public void addHitRequest()
public void addWrite()
public long getWrites(java.lang.String intervalName)
intervalName - the name of the target interval.public void addDelete()
public long getDeletes(java.lang.String intervalName)
intervalName - the name of the target interval.public void addRollover()
public void addCacheFull()
public long getCacheFullCount(java.lang.String intervalName)
intervalName - the name of the target interval.public long getRolloverCount(java.lang.String intervalName)
intervalName - the name of the target interval.public void addGarbageCollected()
public long getGarbageCollected(java.lang.String intervalName)
intervalName - the name of the target interval.public void addFiltered()
public long getFiltered(java.lang.String intervalName)
intervalName - the name of the target interval.public void addExpired()
public long getExpired(java.lang.String intervalName)
intervalName - the name of the target interval.public double getFillRatio(java.lang.String intervalName)
intervalName - the name of the target interval.public java.util.List<java.lang.String> getAvailableValueNames()
IStatsgetAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatspublic java.lang.String toStatsString(java.lang.String intervalName,
TimeUnit timeUnit)
IStatsintervalName - the name of the interval or null for all intervalspublic java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatsCopyright © 2010-2020 anotheria.net. All Rights Reserved.