Package org.apache.bookkeeper.proto
Interface BookieAddressResolver
-
- All Known Implementing Classes:
BookieAddressResolverDisabled
,DefaultBookieAddressResolver
public interface BookieAddressResolver
Maps a logical BookieId to a ResolvedBookieSocketAddress that it to a network address.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BookieAddressResolver.BookieIdNotResolvedException
This error happens when there is not enough information to resolve a BookieId to a BookieSocketAddress, this can happen when the Bookie is down and it is not publishing its EndpointInfo.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BookieSocketAddress
resolve(BookieId bookieId)
Maps a logical address to a network address.
-
-
-
Method Detail
-
resolve
BookieSocketAddress resolve(BookieId bookieId) throws BookieAddressResolver.BookieIdNotResolvedException
Maps a logical address to a network address.- Parameters:
bookieId
-- Returns:
- a mapped address.
- Throws:
BookieAddressResolver.BookieIdNotResolvedException
- if it is not possible to resolve the address of the BookieId
-
-