Class BookieServiceInfoUtils


  • public final class BookieServiceInfoUtils
    extends java.lang.Object
    Utility class for BookieServiceInfo.
    • Constructor Detail

      • BookieServiceInfoUtils

        public BookieServiceInfoUtils()
    • Method Detail

      • buildLegacyBookieServiceInfo

        public static BookieServiceInfo buildLegacyBookieServiceInfo​(java.lang.String bookieId)
                                                              throws java.net.UnknownHostException
        Creates a default legacy bookie info implementation. In the default implementation there is one endpoint with bookie-rpc protocol and the bookie id in the host port.
        Parameters:
        bookieId - bookie id
        Returns:
        default implementation of a BookieServiceInfo
        Throws:
        java.net.UnknownHostException - if the given bookieId is invalid