net.sf.jso.cache
Interface CacheInfo

All Known Implementing Classes:
LRUCache, MemoryCache, PriorityCache

public interface CacheInfo

Interface for use information of a cache.


Method Summary
 long accesses()
          Informs how many times the cache has been accessed through Cache.get() method.
 java.lang.String algorithm()
          Informs the algorithm used by the cache for entry management.
 java.lang.String description()
          Informs a description of the entry management algorithm.
 long hits()
          Informs how many times the cache could return a valid object associated with a key through Cache.get() method.
 int inUse()
          Informs the cache usage.
 long misses()
          Informs how many times the cache could not find any object associated with a key through Cache.get() method.
 int size()
          Informs the cache size.
 

Method Detail

accesses

public long accesses()
Informs how many times the cache has been accessed through Cache.get() method.

Returns:
The total number of accesses.

hits

public long hits()
Informs how many times the cache could return a valid object associated with a key through Cache.get() method.

Returns:
The number of times the cache returned valid objects.

misses

public long misses()
Informs how many times the cache could not find any object associated with a key through Cache.get() method.

Returns:
The number of times the cache did not return valid objects.

size

public int size()
Informs the cache size.

Returns:
The number of entries the cache is able to manage.

inUse

public int inUse()
Informs the cache usage.

Returns:
The number of entries are in use by the cache.

algorithm

public java.lang.String algorithm()
Informs the algorithm used by the cache for entry management.

Returns:
The name (acronym) of the algorithm.

description

public java.lang.String description()
Informs a description of the entry management algorithm.

Returns:
A description (complete name, functional description) of the algorithm.