|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.cache.CacheStatistics
This class handles the statistics for request caches.
Field Summary | |
private Stats |
create
|
private Stats |
delete
|
private Stats |
drop
|
private Stats |
hits
|
private Stats |
insert
|
private Stats |
remove
|
private Stats |
select
|
private Stats |
uncacheable
|
private Stats |
unknown
|
private Stats |
update
|
Constructor Summary | |
CacheStatistics()
Creates a new CacheStatistics object. |
Method Summary | |
void |
addCreate()
Increments the create count. |
void |
addDelete()
Increments the delete count. |
void |
addDrop()
Increments the drop count. |
void |
addHits()
Increments the hits count. |
void |
addInsert()
Increments the insert count. |
void |
addRemove()
Increments the remove count. |
void |
addSelect()
Increments the select count. |
void |
addUncacheable()
Increments the uncacheable count. |
void |
addUnknown()
Increments the unkwnown count. |
void |
addUpdate()
Increments the update count. |
long |
getCacheHitRatio()
Get percentage of hits |
java.lang.String[] |
getCacheStatsData()
Retrieve cache statistics as a table |
int |
getCreate()
Returns the create. |
int |
getDelete()
Returns the delete. |
int |
getDrop()
Returns the drop. |
int |
getHits()
Returns the hits. |
int |
getInsert()
Returns the insert. |
int |
getRemove()
Returns the remove. |
int |
getSelect()
Returns the select. |
int |
getUncacheable()
Returns the uncacheable. |
int |
getUnknown()
Returns the unknown. |
int |
getUpdate()
Returns the update. |
void |
reset()
Resets all stats to zero. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Stats select
private Stats hits
private Stats insert
private Stats update
private Stats uncacheable
private Stats delete
private Stats unknown
private Stats remove
private Stats create
private Stats drop
Constructor Detail |
public CacheStatistics()
Method Detail |
public void reset()
public int getCreate()
int
valuepublic int getDelete()
int
valuepublic int getDrop()
int
valuepublic int getHits()
int
valuepublic int getInsert()
int
valuepublic int getRemove()
int
valuepublic int getSelect()
int
valuepublic int getUnknown()
int
valuepublic int getUpdate()
int
valuepublic int getUncacheable()
int
valuepublic void addCreate()
public void addDelete()
public void addDrop()
public void addHits()
public void addInsert()
public void addRemove()
public void addSelect()
public void addUnknown()
public void addUpdate()
public void addUncacheable()
public java.lang.String[] getCacheStatsData()
public long getCacheHitRatio()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |