Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector Class Reference

Inheritance diagram for org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CountHitsCollector (String virtualDatabaseName)
long getValue (Object cache)
String getDescription ()

Detailed Description

Count total of hits on this cache

Author:
Nicolas Modrzyk

Definition at line 34 of file CountHitsCollector.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector.CountHitsCollector String  virtualDatabaseName  ) 
 

create collector

Parameters:
virtualDatabaseName to get cache info from

Definition at line 41 of file CountHitsCollector.java.

00042   {
00043     super(virtualDatabaseName);
00044   }


Member Function Documentation

String org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector.getDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.common.monitor.AbstractDataCollector.getDescription()

Implements org.objectweb.cjdbc.common.monitor.AbstractDataCollector.

Definition at line 57 of file CountHitsCollector.java.

00058   {
00059     return Translate.get("monitoring.cache.count.hits");
00060   }

long org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector.getValue Object  cache  )  [virtual]
 

See also:
org.objectweb.cjdbc.common.monitor.AbstractDataCollector.collectValue()

Implements org.objectweb.cjdbc.common.monitor.cache.AbstractCacheStatsDataCollector.

Definition at line 49 of file CountHitsCollector.java.

00050   {
00051     return ((AbstractResultCache) cache).getCacheStatistics().getHits();
00052   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:01:50 2005 for C-JDBC by  doxygen 1.3.9.1