Re: [jgroups-users] ViewAccept returns a list of UUID addresses...
Questions/problems related to using JGroups <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <[email protected]> |
Yes, you could do that. Note that a channel can also be given a logical name (JChannel.setName(String)). JGroups maintains a cache of address-name mappings and Address.toString() by default prints the logical name. If not set, hostname-<random> is used. JChannel.getName() can be used to get the logical name. On 29/05/16 22:36, Questions/problems related to using JGroups wrote: > I have a data structure that I can't easily change that tracks peers and > group membership. The peer structure has 3 strings, user name, > identity and endpoint, all strings. Maybe I can maintain a map of > address and address.toString to convert between to two. And issues with > caching the abstract address structure? > > On May 29, 2016 3:50 PM, "Questions/problems related to using JGroups" > <[email protected] > <mailto:[email protected]>> wrote: > > Yes, although why do you want to do this? An address is supposed to be > opaque and could be changed at any time... > > There's a protected field logical_addr_cache in TP which can be fetched > and queried. There are also methods which access this cache. > > The alternative is to use an event sent down from the JChannel, e.g. > like this: > > JChannel ch; > PhysicalAddress pa=(PhysicalAddress)ch.down(new > Event(Event.Event.GET_PHYSICAL_ADDRESS, ch.getAddress()); > // possibly narrow to IpAddress > > > On 29/05/16 21:04, Questions/problems related to using JGroups wrote: > > Is there a way to get actual address instead of UUID's? Like ip > > address and port? Maybe there's a class somewhere that resolves from > > UUID address to ip addresses? > > > > The docs say "UUIDs maps to IpAddresses, which are IP addresses and > > ports. These are eventually used by the transport protocol to send a > > message." but don't say how to do the conversion. > > > -- > Bela Ban, JGroups lead (http://www.jgroups.org) > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and > protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. > https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______________________________________________ > javagroups-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/javagroups-users > > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > > > > _______________________________________________ > javagroups-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/javagroups-users > -- Bela Ban, JGroups lead (http://www.jgroups.org) ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e