Package org.apache.bookkeeper.discover
Class BookieServiceInfoUtils
java.lang.Object
org.apache.bookkeeper.discover.BookieServiceInfoUtils
Utility class for
BookieServiceInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookieServiceInfobuildLegacyBookieServiceInfo(String bookieId) Creates a default legacy bookie info implementation.
-
Constructor Details
-
BookieServiceInfoUtils
public BookieServiceInfoUtils()
-
-
Method Details
-
buildLegacyBookieServiceInfo
public static BookieServiceInfo buildLegacyBookieServiceInfo(String bookieId) throws 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:
UnknownHostException- if the given bookieId is invalid
-