CVS update: JGroups/doc/design RELAY.txt
"Bela Ban" <[email protected]> Tue, 9 Nov 2010 10:40:39 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban Date: 10/11/09 10:40:39 Modified: doc/design RELAY.txt Log: ns Revision Changes Path 1.5 +24 -10 JGroups/doc/design/RELAY.txt Index: RELAY.txt =================================================================== RCS file: /cvsroot/javagroups/JGroups/doc/design/RELAY.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- RELAY.txt 9 Nov 2010 09:18:56 -0000 1.4 +++ RELAY.txt 9 Nov 2010 10:40:39 -0000 1.5 @@ -3,7 +3,7 @@ ======================================== Author: Bela Ban -Version: $Id: RELAY.txt,v 1.4 2010/11/09 09:18:56 belaban Exp $ +Version: $Id: RELAY.txt,v 1.5 2010/11/09 10:40:39 belaban Exp $ This is an enhanced version of DataCenterReplication.txt with the ability to send unicast messages and to provide views to the application, which list members of all local clusters. @@ -92,14 +92,28 @@ Implementation -------------- -RELAY.up(): - - - -RELAY.down(): - - - -Receive message from TCP channel: +RELAY.up(msg): +- If not coord or RelayHeader is present: break +- If multicast message: + - Create new message M.dst=null, src=msg.src // no headers + - Wrap M and put it on the TCP channel +- Else: // unicast + - If hdr == RelayHeader.FORWARD: + - Wrap msg and put it on the TCP channel + + +RELAY.down(msg): +- If msg is a multicast: pass down, break +- If msg.dest is not a ProxyUUID: pass down, break +- Create new message M.dst=msg.dst, M.src=self +- Add RelayHeader.FORWARD to M +- Send M to the current relay (coordinator) + + +Receive message M from TCP channel: +- If sender = self: discard +- Set M.src=ProxyUUID(self,M.src) +- Add a RelayHeader to M +- Put M on the local channel ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev