[jgroups-dev] Request for comments on FORK: grabbing a private channel for communication from an existing channel

Bela Ban <[email protected]> Fri, 09 Aug 2013 17:37:46 +0200
Newsgroups gmane.comp.java.javagroups.devel
Message-ID <[email protected]>
I wanted to solicit feedback on FORK [1].

Using FORK, one can get a private light-weight channel off of an 
existing channel, e.g. to send messages, create an RpcDispatcher on top 
etc. The forked channel is then used exclusively by the application 
which forks it off of the main channel, which means it will neither 
interfere with the main channel, nor will it see messages other than its 
own.

A forked channel can also add protocols, these are then private to it, 
too. For example, an application could grab the JGroups channel from 
Infinispan 
(Cache.getAdvancedCache().getRpcManager().getTransport().getChannel()), 
then fork a light-weight channel with CENTRAL_LOCK on top and use it to 
manage cluster wide locks. The forked channel would be private to the 
application which creates it, but it would piggyback its messages on the 
existing channel, without interfering with it.

I'm currently implementing a prototype, and would like to get feedback 
for the current design [1]. The design doc and impl are in branch JGRP-1613.

Feedback on the mailing list is appreciated !
Cheers,

[1] https://github.com/belaban/JGroups/blob/JGRP-1613/doc/design/FORK.txt

-- 
Bela Ban, JGroups lead (http://www.jgroups.org)

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Javagroups-development mailing list