added property app.cacheusage that holds current number of elements
in the object cache.
This commit is contained in:
parent
972507995c
commit
22ec65ab3b
2 changed files with 11 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue