Package org.apache.bookkeeper.discover
Class BookieServiceInfoUtils
- java.lang.Object
-
- org.apache.bookkeeper.discover.BookieServiceInfoUtils
-
public final class BookieServiceInfoUtils extends java.lang.ObjectUtility class forBookieServiceInfo.
-
-
Constructor Summary
Constructors Constructor Description BookieServiceInfoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BookieServiceInfobuildLegacyBookieServiceInfo(java.lang.String bookieId)Creates a default legacy bookie info implementation.
-
-
-
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 withbookie-rpcprotocol 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
-
-