クラス org.objectweb.cjdbc.controller.cache.CacheStatistics

すべてのメンバ一覧

説明

This class handles the statistics for request caches.

作者:
Emmanuel Cecchet
バージョン:
1.0

CacheStatistics.java35 行で定義されています。

Public メソッド

 CacheStatistics ()
void reset ()
int getCreate ()
int getDelete ()
int getDrop ()
int getHits ()
int getInsert ()
int getRemove ()
int getSelect ()
int getUnknown ()
int getUpdate ()
int getUncacheable ()
void addCreate ()
void addDelete ()
void addDrop ()
void addHits ()
void addInsert ()
void addRemove ()
void addSelect ()
void addUnknown ()
void addUpdate ()
void addUncacheable ()
String[] getCacheStatsData ()
long getCacheHitRatio ()

Private 変数

Stats select
Stats hits
Stats insert
Stats update
Stats uncacheable
Stats delete
Stats unknown
Stats remove
Stats create
Stats drop


コンストラクタとデストラクタ

org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics  ) 
 

Creates a new CacheStatistics object. CacheStatistics.java52 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.create, org.objectweb.cjdbc.controller.cache.CacheStatistics.drop, org.objectweb.cjdbc.controller.cache.CacheStatistics.hits, org.objectweb.cjdbc.controller.cache.CacheStatistics.insert, org.objectweb.cjdbc.controller.cache.CacheStatistics.remove, org.objectweb.cjdbc.controller.cache.CacheStatistics.select, org.objectweb.cjdbc.controller.cache.CacheStatistics.uncacheable, org.objectweb.cjdbc.controller.cache.CacheStatistics.unknown, と org.objectweb.cjdbc.controller.cache.CacheStatistics.update.

00053 { 00054 select = new Stats("select"); 00055 hits = new Stats("hits"); 00056 insert = new Stats("insert"); 00057 update = new Stats("update"); 00058 uncacheable = new Stats("uncacheable"); 00059 delete = new Stats("delete"); 00060 unknown = new Stats("unknown"); 00061 remove = new Stats("remove"); 00062 create = new Stats("create"); 00063 drop = new Stats("drop"); 00064 }


メソッド

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addCreate  ) 
 

Increments the create count. CacheStatistics.java186 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.create.

00187 { 00188 create.incrementCount(); 00189 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addDelete  ) 
 

Increments the delete count. CacheStatistics.java194 行で定義されています。

00195 { 00196 delete.incrementCount(); 00197 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addDrop  ) 
 

Increments the drop count. CacheStatistics.java202 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.drop.

00203 { 00204 drop.incrementCount(); 00205 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addHits  ) 
 

Increments the hits count. CacheStatistics.java210 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.hits.

00211 { 00212 hits.incrementCount(); 00213 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addInsert  ) 
 

Increments the insert count. CacheStatistics.java218 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.insert.

00219 { 00220 insert.incrementCount(); 00221 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addRemove  ) 
 

Increments the remove count. CacheStatistics.java226 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.remove.

00227 { 00228 remove.incrementCount(); 00229 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addSelect  ) 
 

Increments the select count. CacheStatistics.java234 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.select.

00235 { 00236 select.incrementCount(); 00237 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addUncacheable  ) 
 

Increments the uncacheable count. CacheStatistics.java258 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.uncacheable.

00259 { 00260 uncacheable.incrementCount(); 00261 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addUnknown  ) 
 

Increments the unkwnown count. CacheStatistics.java242 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.unknown.

00243 { 00244 unknown.incrementCount(); 00245 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.addUpdate  ) 
 

Increments the update count. CacheStatistics.java250 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.update.

00251 { 00252 update.incrementCount(); 00253 }

long org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheHitRatio  ) 
 

Get percentage of hits

戻り値:
hits / select
CacheStatistics.java291 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.hits, と org.objectweb.cjdbc.controller.cache.CacheStatistics.select.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00292 { 00293 if (select.getCount() == 0) 00294 return 0; 00295 else 00296 return (long) ((float) hits.getCount() / (float) select.getCount() * 100.0); 00297 }

String [] org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData  ) 
 

Retrieve cache statistics as a table

戻り値:
an array of String containing the different cache values, like number of select, number of hits ...
CacheStatistics.java269 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheHitRatio(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getCreate(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getDelete(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getDrop(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getHits(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getInsert(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getRemove(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getSelect(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getUncacheable(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getUnknown(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.getUpdate().

00270 { 00271 String[] stats = new String[11]; 00272 stats[0] = "" + getSelect(); 00273 stats[1] = "" + getHits(); 00274 stats[2] = "" + getInsert(); 00275 stats[3] = "" + getUpdate(); 00276 stats[4] = "" + getUncacheable(); 00277 stats[5] = "" + getDelete(); 00278 stats[6] = "" + getUnknown(); 00279 stats[7] = "" + getRemove(); 00280 stats[8] = "" + getCreate(); 00281 stats[9] = "" + getDrop(); 00282 stats[10] = "" + getCacheHitRatio(); 00283 return stats; 00284 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getCreate  ) 
 

Returns the create.

戻り値:
an int value
CacheStatistics.java88 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.create.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00089 { 00090 return create.getCount(); 00091 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getDelete  ) 
 

Returns the delete.

戻り値:
an int value
CacheStatistics.java98 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00099 { 00100 return delete.getCount(); 00101 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getDrop  ) 
 

Returns the drop.

戻り値:
an int value
CacheStatistics.java108 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.drop.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00109 { 00110 return drop.getCount(); 00111 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getHits  ) 
 

Returns the hits.

戻り値:
an int value
CacheStatistics.java118 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.hits.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00119 { 00120 return hits.getCount(); 00121 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getInsert  ) 
 

Returns the insert.

戻り値:
an int value
CacheStatistics.java128 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.insert.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00129 { 00130 return insert.getCount(); 00131 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getRemove  ) 
 

Returns the remove.

戻り値:
an int value
CacheStatistics.java138 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.remove.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00139 { 00140 return remove.getCount(); 00141 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getSelect  ) 
 

Returns the select.

戻り値:
an int value
CacheStatistics.java148 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.select.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00149 { 00150 return select.getCount(); 00151 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getUncacheable  ) 
 

Returns the uncacheable.

戻り値:
an int value
CacheStatistics.java178 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.uncacheable.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00179 { 00180 return uncacheable.getCount(); 00181 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getUnknown  ) 
 

Returns the unknown.

戻り値:
an int value
CacheStatistics.java158 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.unknown.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00159 { 00160 return unknown.getCount(); 00161 }

int org.objectweb.cjdbc.controller.cache.CacheStatistics.getUpdate  ) 
 

Returns the update.

戻り値:
an int value
CacheStatistics.java168 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.update.

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheStatsData().

00169 { 00170 return update.getCount(); 00171 }

void org.objectweb.cjdbc.controller.cache.CacheStatistics.reset  ) 
 

Resets all stats to zero. CacheStatistics.java69 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.CacheStatistics.create, org.objectweb.cjdbc.controller.cache.CacheStatistics.drop, org.objectweb.cjdbc.controller.cache.CacheStatistics.hits, org.objectweb.cjdbc.controller.cache.CacheStatistics.insert, org.objectweb.cjdbc.controller.cache.CacheStatistics.remove, org.objectweb.cjdbc.controller.cache.CacheStatistics.select, org.objectweb.cjdbc.controller.cache.CacheStatistics.uncacheable, org.objectweb.cjdbc.controller.cache.CacheStatistics.unknown, と org.objectweb.cjdbc.controller.cache.CacheStatistics.update.

00070 { 00071 select.reset(); 00072 hits.reset(); 00073 insert.reset(); 00074 update.reset(); 00075 uncacheable.reset(); 00076 delete.reset(); 00077 unknown.reset(); 00078 remove.reset(); 00079 create.reset(); 00080 drop.reset(); 00081 }


変数

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.create [private]
 

CacheStatistics.java46 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addCreate(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getCreate(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.delete [private]
 

CacheStatistics.java43 行で定義されています。

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.drop [private]
 

CacheStatistics.java47 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addDrop(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getDrop(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.hits [private]
 

CacheStatistics.java39 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addHits(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheHitRatio(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getHits(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.insert [private]
 

CacheStatistics.java40 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addInsert(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getInsert(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.remove [private]
 

CacheStatistics.java45 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addRemove(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getRemove(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.select [private]
 

CacheStatistics.java38 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addSelect(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getCacheHitRatio(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getSelect(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.uncacheable [private]
 

CacheStatistics.java42 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addUncacheable(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getUncacheable(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.unknown [private]
 

CacheStatistics.java44 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addUnknown(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getUnknown(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().

Stats org.objectweb.cjdbc.controller.cache.CacheStatistics.update [private]
 

CacheStatistics.java41 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.CacheStatistics.addUpdate(), org.objectweb.cjdbc.controller.cache.CacheStatistics.CacheStatistics(), org.objectweb.cjdbc.controller.cache.CacheStatistics.getUpdate(), と org.objectweb.cjdbc.controller.cache.CacheStatistics.reset().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:36 2004に生成されました。 doxygen 1.3.8