|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.StatisticsCache
public class StatisticsCache
INTERNAL: A transactional storage cache implementation. The cache uses the transactions identity map to lookup objects and stores its cache entries directly on the PersistentIFs.
| Field Summary | |
|---|---|
protected int |
dump_interval
|
protected int |
hits_f
|
protected int |
hits_o
|
protected int |
misses_f
|
protected int |
misses_o
|
protected java.lang.String |
name
|
protected StorageCacheIF |
pcache
|
protected int |
total_f
|
protected int |
total_o
|
| Method Summary | |
|---|---|
void |
clear(boolean notifyCluster)
INTERNAL: Clears the cache. |
void |
close()
INTERNAL: Releases all resources used by the storage cache. |
void |
dump()
|
void |
evictField(IdentityIF identity,
int field,
boolean notifyCluster)
INTERNAL: Evict the identity's field value from the cache. |
void |
evictFields(IdentityIF identity,
boolean notifyCluster)
INTERNAL: Evict all the identity's field values from the cache. |
void |
evictIdentity(IdentityIF identity,
boolean notifyCluster)
INTERNAL: Evict the identity from the cache. |
boolean |
exists(StorageAccessIF access,
IdentityIF identity)
INTERNAL: Can be called to verify whether the specified identity exists in the cache or in the data repository. |
AccessRegistrarIF |
getRegistrar()
INTERNAL: Returns the access registrar instance that is used by the storage cache. |
java.lang.Object |
getValue(StorageAccessIF access,
IdentityIF identity,
int field)
INTERNAL: A call forwarded by the transaction (TransactionIF) from persistent objects (PersistentIF) when the field value needs to be retrieved from storage. |
boolean |
isFieldLoaded(IdentityIF identity,
int field)
INTERNAL: Can be called to check if the specfied field has been registered with the cache. |
boolean |
isObjectLoaded(IdentityIF identity)
INTERNAL: Can be called to check if the identity has been registered with the cache. |
protected int |
percent(int c,
int total)
|
int |
prefetch(StorageAccessIF access,
java.lang.Object type,
int field,
int nextField,
boolean traverse,
java.util.Collection identities)
|
void |
registerEviction()
INTERNAL: Tells the cache that eviction is starting. |
void |
releaseEviction()
INTERNAL: Deregister eviction. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int total_o
protected int total_f
protected int hits_o
protected int hits_f
protected int misses_o
protected int misses_f
protected int dump_interval
protected java.lang.String name
protected StorageCacheIF pcache
| Method Detail |
|---|
public AccessRegistrarIF getRegistrar()
StorageCacheIF
getRegistrar in interface StorageCacheIFpublic void close()
StorageCacheIF
close in interface StorageCacheIF
public boolean exists(StorageAccessIF access,
IdentityIF identity)
StorageCacheIF
exists in interface StorageCacheIF
public java.lang.Object getValue(StorageAccessIF access,
IdentityIF identity,
int field)
StorageCacheIF
getValue in interface StorageCacheIFpublic boolean isObjectLoaded(IdentityIF identity)
StorageCacheIF
isObjectLoaded in interface StorageCacheIF
public boolean isFieldLoaded(IdentityIF identity,
int field)
StorageCacheIF
isFieldLoaded in interface StorageCacheIFpublic void registerEviction()
StorageCacheIF
registerEviction in interface StorageCacheIFpublic void releaseEviction()
StorageCacheIF
releaseEviction in interface StorageCacheIF
public void evictIdentity(IdentityIF identity,
boolean notifyCluster)
StorageCacheIF
evictIdentity in interface StorageCacheIF
public void evictFields(IdentityIF identity,
boolean notifyCluster)
StorageCacheIF
evictFields in interface StorageCacheIF
public void evictField(IdentityIF identity,
int field,
boolean notifyCluster)
StorageCacheIF
evictField in interface StorageCacheIFpublic void clear(boolean notifyCluster)
StorageCacheIF
clear in interface StorageCacheIF
public int prefetch(StorageAccessIF access,
java.lang.Object type,
int field,
int nextField,
boolean traverse,
java.util.Collection identities)
prefetch in interface StorageCacheIF
protected int percent(int c,
int total)
public void dump()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||