[jboss-jira] [JBoss JIRA] Commented: (JGRP-563) Consolidate state transfer API to use streams

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Apr 6 09:17:33 EDT 2011


    [ https://issues.jboss.org/browse/JGRP-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594011#comment-12594011 ] 

Bela Ban commented on JGRP-563:
-------------------------------

I don't think this is good, as folks may want to implement the simpler byte[] based state transfer callbacks...

> Consolidate state transfer API to use streams
> ---------------------------------------------
>
>                 Key: JGRP-563
>                 URL: https://issues.jboss.org/browse/JGRP-563
>             Project: JGroups
>          Issue Type: Task
>            Reporter: Vladimir Blagojevic
>            Assignee: Vladimir Blagojevic
>             Fix For: 3.0
>
>
> Although streaming state transfer has its advantages over byte based state transfer, byte based state transfer is absolutely necessary since streaming based transfer relies on plain sockets that are not firewall friendly. However, that does not mean that we cannot consolidate state transfer API at application level and mask byte based transfer with streams. We have already done this in JBC 2.0 so there is no reason not to do it on JGroups level as well.
> Advantages:
> - simpler state transfer API
> - interchangeable state transfer mechanism without affect on application
> - simplification of client application
> Disadvantages:
> - we break current API by eliminating getState(byte[]) and setState(byte [])

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list