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 ClassesModifier and TypeInterfaceDescriptionstatic classThis 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
Modifier and TypeMethodDescriptionMaps a logical address to a network address.
-
Method Details
-
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
-