added property app.cacheusage that holds current number of elements

in the object cache.
This commit is contained in:
stefanp 2002-09-30 09:41:55 +00:00
parent 972507995c
commit 22ec65ab3b
2 changed files with 11 additions and 0 deletions

View file

@ -114,6 +114,10 @@ public class ApplicationBean implements Serializable {
// getter methods for readonly properties of this application
public int getcacheusage () {
return app.nmgr.countCacheEntries ();
}
public INode getdata() {
return app.getCacheNode ();
}

View file

@ -1160,6 +1160,13 @@ public final class NodeManager {
return cache.getEntryArray ();
}
/**
* Get the number of elements in the object cache
*/
public int countCacheEntries () {
return cache.size ();
}
/**
* Clear the object cache, causing all objects to be recreated.
*/