net.java.dev.moskito.core.predefined
Class CacheStats

java.lang.Object
  extended by net.java.dev.moskito.core.producers.AbstractStats
      extended by net.java.dev.moskito.core.predefined.CacheStats
All Implemented Interfaces:
IStats

public class CacheStats
extends AbstractStats


Field Summary
private  StatValue expiredCount
           
private  StatValue filteredCount
           
private  StatValue garbageCollected
           
private  StatValue hits
           
private  String name
           
private  StatValue requests
           
private  StatValue rolloverCount
           
private  StatValue writes
           
 
Constructor Summary
CacheStats()
           
CacheStats(String aName, Interval[] selectedIntervals)
           
 
Method Summary
 void addExpired()
           
 void addFiltered()
           
 void addGarbageCollected()
           
 void addHit()
           
 void addHitRequest()
           
 void addRequest()
           
 void addRollover()
           
 void addWrite()
           
 long getExpired(String intervalName)
           
 double getFillRatio(String intervalName)
           
 long getFiltered(String intervalName)
           
 long getGarbageCollected(String intervalName)
           
 double getHitRatio(String intervalName)
           
 long getHits(String intervalName)
           
 String getName()
          This method returns the name of this set of statistical values.
 long getRequests(String intervalName)
           
 long getRolloverCount(String intervalName)
           
 long getWrites(String intervalName)
           
 String toStatsString(String intervalName)
          This method creates a human-readable textual representation of all statistical values in the given interval.
 
Methods inherited from class net.java.dev.moskito.core.producers.AbstractStats
createSnapshot, toStatsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CacheStats

public CacheStats()

CacheStats

public CacheStats(String aName,
                  Interval[] selectedIntervals)
Method Detail

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