[infinispan-dev] ComponentRegistry, rewiring and @NonVolatile

Galder Zamarreno galder.zamarreno at redhat.com
Mon Oct 12 05:47:19 EDT 2009


That looks good!
Much better naming and easier to understand what it does :)

I'll be deprecating https://jira.jboss.org/jira/browse/ISPN-148 since it 
was related to the volatile/nonvolatile startup and it seems to be 
working fine now without the need of any annotation.

On 10/12/2009 01:44 AM, Manik Surtani wrote:
> I have spent some time with this over the weekend, and here is where I
> think we stand:
>
> The main reason why we needed the @NonVolatile annotation and the
> ability to rewire components prior to starting is because JBC had a 2-
> stage start sequence (create() followed by start()), and in between
> these 2 stages the configuration could have changed.  This doesn't
> apply to Infinispan anymore.
>
> The other reason this was important is to be able to restart a cache,
> after stopping it.  This still applies to Infinispan.  I have
> revisited the code and the reasons for rewiring.  Since there is no
> create phase anymore, we don't need to rewire every time a cache
> starts, only if it had been stopped before.  And as such, a lot fewer
> components need to be marked as @NonVolatile - only a bare minimum
> critical set of components that are needed to bootstrap the starting
> of a cache after it has been stopped.
>
> Also, I have renamed @NonVolatile to @SurvivesRestarts, to be a bit
> more specific about its purpose, and also to break away from the old
> intention of @NonVolatile in JBoss Cache 3.x.  I have updated the
> javadocs of @SurvivesRestarts accordingly as well.
>
> Please have a look, and let me know what you think.
>
> Cheers
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list