[jbosscache-dev] Re: Use of org.jboss.cache.Region
Manik Surtani
manik at jboss.org
Mon Nov 6 06:58:54 EST 2006
On 1 Nov 2006, at 20:07, Brian Stansberry wrote:
> Another thing we need is equiv of the
> o.j.c.eviction.RegionManager.markNodeCurrentlyInUse()/
> unmarkNodeCurrentl
> yInUse() calls exposed in o.j.c.Region.
What are these markers used for? And what semantics would we need
around this?
>
> Brian Stansberry wrote:
>> Hey Manik,
>>
>> I know you were planning on working with integrating the
>> eviction and marshalling regions this week. Here's some
>> input based on stuff I'm doing on converting the EJB3 code to use the
>> 2.0 API.
>>
>> 1) Once I call Cache.getRegion(fqn, true) I've created a
>> Region, but I'm not sure how to set it up programatically to
>> do eviction. Passing a config to setEvictionPolicyConfig()
>> seems obvious. But would that be enough to get the eviction
>> policy created? Or should I then call activate()? The
>> javadoc implies that activate() pertains to marshalling, but
>> does it make sense to make it apply to eviction as well -- a
>> sort of general purpose start() method?
Yes, I think a generic activate() is what we need here. Will add
more javadocs and stitch this together this week.
>>
>> 2) Conversely, how to remove a region when an SFSB is
>> undeployed? There's no Cache.removeRegion(Fqn). There is a
>> deactivate() method.
Again, yes, there needs to be a remove() which I will add.
>>
>> I realize this stuff may not be implemented; I'm more
>> concerned with understanding the API.
>>
>> Brian Stansberry
>> Lead, AS Clustering
>> JBoss, a division of Red Hat
>> Ph: 510-396-3864
>> skype: bstansberry
More information about the jbosscache-dev
mailing list