[JBossCache] - Monitoring puts and evictions
by kagey
Hey all,
I am trying to devise a way to montior puts and expires. When i put a new node on the tree, i use put(fqn, key, value) - each node contains only one key/value pair. I use the LRU eviction policy.
What i would like to have a listener able to monitor the adds and evictions of the cache, with access to the data objects. I tried using TreeCacheListener but it seems the nodeCreated and nodeEvicted callbacks are signaled too early and too late, respectively. This means the key/value mapping either doesn't exist yet, or the entire node is gone.
Does anyone have any ideas on how I can accomplish my goal? I was thinking about tacking on a custom interceptor to the chain - do you think this would work?
Thanks
kagey
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987741#3987741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987741
19Â years, 7Â months
[JBoss Portal] - supported-window-states ignored?
by Peter.Coppens
Hello,
I am sorry this is such a basic question, but I have been looking at it for the last two hours and I can't figure it out.
I have a portal instance with portlet isolated in a separate war and have removed all but the normal window-state elements in the -object.xml file.
Unfortunately that does not change anything - the min/max icons are still displayed.
I have also been debugging the code (trunk) where this information is read and was somewhat surprised by the fact that the code does not seem to do anything useful.
It always seems to initialize all window states
| public PortalMetaData()
| {
| modes = new ModesMetaData();
| modes.add("edit");
| modes.add("view");
| modes.add("help");
| windowStates = new WindowStatesMetaData();
| windowStates.add("maximized");
| windowStates.add("minimized");
| windowStates.add("normal");
| }
|
|
Anybody any idea what I could be doing wrong and/or can someone confirm that the window-state elements are indeed meant to disable the display (and function) of these min/max items?
Thanks,
Peter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987740#3987740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987740
19Â years, 7Â months