Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1297

Make generation of addresses pluggable

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.12
    • None
    • None

      Sometimes it might be desirable to provide custom addresses (classes implementing org.jgroups.Address). One example is an address which contains additional data, e.g. an attribute that's shipped around with the address.

      SOLUTION: JChannel provides a setAddressGenerator(AddressGenerator). AddressGenerator has a method generateAddress(), which returns an Address.
      One could create a subclass of UUID, for instance, and add a string to it, and then create an instance of this subclass in generateAddress().

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: