Class DefaultBookieAddressResolver

  • All Implemented Interfaces:
    org.apache.bookkeeper.proto.BookieAddressResolver

    public class DefaultBookieAddressResolver
    extends java.lang.Object
    implements org.apache.bookkeeper.proto.BookieAddressResolver
    Resolve BookieIDs to Network addresses.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.bookkeeper.proto.BookieAddressResolver

        org.apache.bookkeeper.proto.BookieAddressResolver.BookieIdNotResolvedException
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultBookieAddressResolver​(org.apache.bookkeeper.discover.RegistrationClient registrationClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.bookkeeper.net.BookieSocketAddress resolve​(org.apache.bookkeeper.net.BookieId bookieId)
      Maps a logical address to a network address.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultBookieAddressResolver

        public DefaultBookieAddressResolver​(org.apache.bookkeeper.discover.RegistrationClient registrationClient)
    • Method Detail

      • resolve

        public org.apache.bookkeeper.net.BookieSocketAddress resolve​(org.apache.bookkeeper.net.BookieId bookieId)
        Description copied from interface: org.apache.bookkeeper.proto.BookieAddressResolver
        Maps a logical address to a network address.
        Specified by:
        resolve in interface org.apache.bookkeeper.proto.BookieAddressResolver
        Returns:
        a mapped address.