net.java.dev.moskito.core.predefined
Class CacheStats
java.lang.Object
net.java.dev.moskito.core.producers.AbstractStats
net.java.dev.moskito.core.predefined.CacheStats
- All Implemented Interfaces:
- IStats
public class CacheStats
- extends AbstractStats
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requests
private StatValue requests
hits
private StatValue hits
writes
private StatValue writes
garbageCollected
private StatValue garbageCollected
rolloverCount
private StatValue rolloverCount
expiredCount
private StatValue expiredCount
filteredCount
private StatValue filteredCount
name
private String name
CacheStats
public CacheStats()
CacheStats
public CacheStats(String aName,
Interval[] selectedIntervals)
getName
public String getName()
- Description copied from interface:
IStats
- This method returns the name of this set of statistical values.
- Returns:
- the name
toStatsString
public String toStatsString(String intervalName)
- Description copied from interface:
IStats
- This method creates a human-readable textual representation of all statistical
values in the given interval.
- Parameters:
intervalName - the name of the interval or null for all intervals
- Returns:
- the formatted text output
getHitRatio
public double getHitRatio(String intervalName)
addRequest
public void addRequest()
getRequests
public long getRequests(String intervalName)
addHit
public void addHit()
getHits
public long getHits(String intervalName)
addHitRequest
public void addHitRequest()
addWrite
public void addWrite()
getWrites
public long getWrites(String intervalName)
addRollover
public void addRollover()
getRolloverCount
public long getRolloverCount(String intervalName)
addGarbageCollected
public void addGarbageCollected()
getGarbageCollected
public long getGarbageCollected(String intervalName)
addFiltered
public void addFiltered()
getFiltered
public long getFiltered(String intervalName)
addExpired
public void addExpired()
getExpired
public long getExpired(String intervalName)
getFillRatio
public double getFillRatio(String intervalName)
Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework