]
Tim Fox closed JBMESSAGING-1148.
--------------------------------
Fix Version/s: Unscheduled
(was: 2.0.0 Beta)
Resolution: Out of Date
Remove node id address mapping
------------------------------
Key: JBMESSAGING-1148
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1148
Project: JBoss Messaging
Issue Type: Task
Reporter: Tim Fox
Assignee: Tim Fox
Fix For: Unscheduled
We can dramatically simplify the way we currently deal with node id- address mappings.
We can pass in node id as additional data before call to connect so each address in the
view has the extra data - this makes node id - address mapping redundant, and we can
remove the join and leave messages. :)
We can also remove the failovermap altogether - and generate it on the fly from the view
(now it becomes trivial!!)
This should vastly simplify things and remove the scope for race conditions.
You can associate arbitrary data with an IpAddress, see below:
| JChannel c=new JChannel(properties);
Map<String,Object> m=new HashMap<String,Object>();
m.put("additional_data", new byte[]{'b', 'e',
'l', 'a'});
c.down(new Event(Event.CONFIG, m));
c.connect("bla");
IpAddress addr=(IpAddress)c.getLocalAddress();
System.out.println("address is " + addr);
assertNotNull(addr.getAdditionalData());
assertEquals('b', addr.getAdditionalData()[0]);
c.close();|
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: