Package org.apache.bookkeeper.client
Class DefaultBookieAddressResolver
- java.lang.Object
-
- org.apache.bookkeeper.client.DefaultBookieAddressResolver
-
- All Implemented Interfaces:
BookieAddressResolver
public class DefaultBookieAddressResolver extends java.lang.Object implements BookieAddressResolver
Resolve BookieIDs to Network addresses.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.bookkeeper.proto.BookieAddressResolver
BookieAddressResolver.BookieIdNotResolvedException
-
-
Constructor Summary
Constructors Constructor Description DefaultBookieAddressResolver(RegistrationClient registrationClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrationClient
getRegistrationClient()
BookieSocketAddress
resolve(BookieId bookieId)
Maps a logical address to a network address.
-
-
-
Constructor Detail
-
DefaultBookieAddressResolver
public DefaultBookieAddressResolver(RegistrationClient registrationClient)
-
-
Method Detail
-
getRegistrationClient
public RegistrationClient getRegistrationClient()
-
resolve
public BookieSocketAddress resolve(BookieId bookieId)
Description copied from interface:BookieAddressResolver
Maps a logical address to a network address.- Specified by:
resolve
in interfaceBookieAddressResolver
- Returns:
- a mapped address.
-
-