[jboss-jira] [JBoss JIRA] Closed: (JGRP-1209) MuxUpHandler needs to handle all event types

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jun 8 23:29:38 EDT 2010


     [ https://jira.jboss.org/browse/JGRP-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry closed JGRP-1209.
----------------------------------

    Resolution: Done


Resolved in a simpler fashion than the attached patch, similar to what was discussed in the referenced dev list thread.

> MuxUpHandler needs to handle all event types
> --------------------------------------------
>
>                 Key: JGRP-1209
>                 URL: https://jira.jboss.org/browse/JGRP-1209
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.10
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: 2.10
>
>         Attachments: MuxUpHandlerStateTransfer.patch
>
>
> MuxUpHandler needs to handle other events besides MSG and VIEW_CHANGE. Patch attached.
> The tricky one's are state transfer related and BLOCK/UNBLOCK.
> BLOCK/UNBLOCK is fairly straightforward, except a handler may be registered with the Channel after it is started. In that case, the handler needs to be passed the *last* BLOCK/UNBLOCK event so it's initial state is correct.
> State transfer is more complex. I've got a solution based on a rule that if a bunch of components of a service want to share a channel via Mux(Message/Rpc)Dispatcher, then at most one can use full state transfer; the rest must use partial state transfer. Those that use partial state transfer can register an UpHandler with the Muxer that implements a new StateTranferFilter interface
> boolean accepts(String state_id)
> MuxUpHandler handles state transfer related events by iterating through the registered handlers, calling accepts(), passing the event to the one that returns true, with fallback logic if none accept. See patch I'll attach in a moment for further details.

-- 
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 jboss-jira mailing list