You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by "Betten, Thorben" <th...@open-xchange.com> on 2008/09/17 11:18:44 UTC

Default element event handler working for lateral/remote elements, too?

Hi all,

as already stated on JCS home page, element event handlers can only be
specified locally to a cache element's attributes; meaning they are not
going to be transferred to any auxiliary cache.

My question is, if the element event handlers specified through a cache
region's default element attributes are applied to laterally/remotely put
cache elements or at least are supposed to be applied.

By now it seems that a default element event handler is not valid for
laterally/remotely received cache elements. Is there any other way to apply
an element event handler for such cache elements?

Thanks in advance!



--
with best regards,
Thorben Betten

Re: Default element event handler working for lateral/remote elements, too?

Posted by "Betten, Thorben" <th...@open-xchange.com>.
Hi all,

is it possible to verify that (bug) in source code?
If so: Where is the does the applying of default element event handlers take
place?

Maybe explaining my basic idea would help:
I want to be notified about certain laterally/remotely put cache elements.
("certain" means they have a flag set in their member variables)

To do so, those elements are put into cache with a very small idle time
value through altering their element attributes. Moreover the default
element attributes have an event handler applied, which tracks both
idle-time-caused-removals (on request and on shrinker removal) and then
notifies that such a certain cache element left the cache. The fact that an
element left the cache implicitly says that it has been put before...

I know this is kind of dirty hacking just for actually being noticed about a
remote put.
Does anyone know a better way to accomplish that?

Help would be appreciated.


Aaron Smuts <as...@yahoo.com> hat am 19. September 2008 um 05:20
geschrieben:

> This is a complicated situation.  I'm not sure what should happen.  I
> suppose the default event handlers should be applied to all incoming
> objects.  If so, then you might have found a bug.  I'm not sure.  The
> event handling logic is fairly primitive.
> 
> Aaron
> 
> 
> --- On Wed, 9/17/08, Betten, Thorben <th...@open-xchange.com>
> wrote:
> 
> > From: Betten, Thorben <th...@open-xchange.com>
> > Subject: Default element event handler working for lateral/remote
> > elements, too?
> > To: jcs-users@jakarta.apache.org
> > Date: Wednesday, September 17, 2008, 2:18 AM
> > Hi all,
> > 
> > as already stated on JCS home page, element event handlers
> > can only be
> > specified locally to a cache element's attributes;
> > meaning they are not
> > going to be transferred to any auxiliary cache.
> > 
> > My question is, if the element event handlers specified
> > through a cache
> > region's default element attributes are applied to
> > laterally/remotely put
> > cache elements or at least are supposed to be applied.
> > 
> > By now it seems that a default element event handler is not
> > valid for
> > laterally/remotely received cache elements. Is there any
> > other way to apply
> > an element event handler for such cache elements?
> > 
> > Thanks in advance!
> > 
> > 
> > 
> > --
> > with best regards,
> > Thorben Betten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> 




--
with best regards,
Thorben Betten

_______________________________________________
Thorben Betten, Software Developer
Phone +49 2761 8385 16
Fax +49 2761 8385 30
Open-Xchange GmbH, Martinstr. 41, D-57462 Olpe
_______________________________________________

Re: Default element event handler working for lateral/remote elements, too?

Posted by Aaron Smuts <as...@yahoo.com>.
This is a complicated situation.  I'm not sure what should happen.  I suppose the default event handlers should be applied to all incoming objects.  If so, then you might have found a bug.  I'm not sure.  The event handling logic is fairly primitive.

Aaron


--- On Wed, 9/17/08, Betten, Thorben <th...@open-xchange.com> wrote:

> From: Betten, Thorben <th...@open-xchange.com>
> Subject: Default element event handler working for lateral/remote elements, too?
> To: jcs-users@jakarta.apache.org
> Date: Wednesday, September 17, 2008, 2:18 AM
> Hi all,
> 
> as already stated on JCS home page, element event handlers
> can only be
> specified locally to a cache element's attributes;
> meaning they are not
> going to be transferred to any auxiliary cache.
> 
> My question is, if the element event handlers specified
> through a cache
> region's default element attributes are applied to
> laterally/remotely put
> cache elements or at least are supposed to be applied.
> 
> By now it seems that a default element event handler is not
> valid for
> laterally/remotely received cache elements. Is there any
> other way to apply
> an element event handler for such cache elements?
> 
> Thanks in advance!
> 
> 
> 
> --
> with best regards,
> Thorben Betten

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org