[infinispan-issues] [JBoss JIRA] Commented: (ISPN-244) Enable external user/framework defined Externalizers

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Wed Oct 13 03:01:40 EDT 2010


    [ https://jira.jboss.org/browse/ISPN-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556668#action_12556668 ] 

Galder Zamarreño commented on ISPN-244:
---------------------------------------

For future reference, a nice discussion between Mircea and myself on why we need Externalizers defined at startup and why it might be difficult to come up with a solution that can figure them out at runtime: http://lists.jboss.org/pipermail/infinispan-dev/2010-October/006457.html

> Enable external user/framework defined Externalizers
> ----------------------------------------------------
>
>                 Key: ISPN-244
>                 URL: https://jira.jboss.org/browse/ISPN-244
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Marshalling
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>             Fix For: 5.0.0.BETA1, 5.0.0.Final
>
>
> Create an internal magic number (i.e. -1 or 255) for user defined externalizers. This is done to avoid users using our number space.
> So, internally: <magic_number> <stream>
> Users: <magic_number><user defined magic number (int)> <stream>
> Mandate unsigned ints so that we can optimise by sending them as variable lenght
> Internal frameworks could use high enough numbers for example up to 2 bytes: 5000, 7000, 20000
> 1 byte: 128
> 2 bytes: 32767
> 3 bytes: ...
> GlobalConfiguration.registerMarshallable(Class type, Externalizer ext, int id);
> Maybe CacheManager better?
> CacheManager.registerMarshallable(Class type, Externalizer ext, int id);
> Future improvement, maybe generate ids automatically for user defined classes?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list