org.gjt.rec.cache
Class Caches
java.lang.Object
|
+--org.gjt.rec.cache.Caches
- public class Caches
- extends Object
Utility methods for caches.
- Author:
- Neil Stockbridge
- See Also:
Cache
Method Summary |
static void |
writeReport(Cache cache,
PrintWriter writer)
Writes a report on a particular cache to a particular
PrintWriter . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
writeReport
public static void writeReport(Cache cache,
PrintWriter writer)
- Writes a report on a particular cache to a particular
PrintWriter
. The report includes the number of requests
made of the cache, the number of those requests that could be satisfied
by the cache and performance metrics based on those values and the
number of elements in the cache.
- Parameters:
cache
- the cache about which to write the report.writer
- the writer on which to write the report.