[infinispan-dev] Externalizer and Commands ID ranges

Galder Zamarreño galder at redhat.com
Tue Sep 13 05:25:17 EDT 2011


On Sep 12, 2011, at 1:32 PM, Sanne Grinovero wrote:

> I've added a new table as suggested by Galder, and sent a pull request
> to constrain Query in the range I just defined [1]
> 
> For this case we only have a single byte to share across all commands.
> Is it reasonable to reserve 100 values for Infinispan core, and blocks
> of 20 for needing modules?
> 
> 1 - https://github.com/infinispan/infinispan/pull/526

No need to reserve for Infinispan core cos that's indexed differently to the externally provided commands. Same thing happens for externally defined Externalizers.

What you need to be worrying about is that you're not using same ids as other external commands.

Blocks of 20 sounds good for commands/modules.

> 
> Sanne
> 
> On 12 September 2011 12:48, Galder Zamarreño <galder at redhat.com> wrote:
>> 
>> On Sep 8, 2011, at 2:05 AM, Sanne Grinovero wrote:
>> 
>>> Hi all,
>>> I've just updated the table at the bottom of
>>> https://docs.jboss.org/author/display/ISPN/Plugging+Infinispan+With+User+Defined+Externalizers
>>> 
>>> to reserve a range for usage of custom externalizers in Hibernate Search.
>>> 
>>> I'm also going to need custom commands; do we need to similarly
>>> reserve ranges for Command IDs ?
>> 
>> We should have. It should be documented in https://docs.jboss.org/author/display/ISPN/Writing+custom+commands+in+Infinispan
>> 
>>> 
>>> Sanne
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
> 
> _______________________________________________
> 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