Package org.apache.bookkeeper.client
Interface BookiesHealthInfo
-
public interface BookiesHealthInfo
This interface returns heuristics used to determine the health of a Bookkeeper server for read ordering.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getBookieFailureHistory(BookieId bookieSocketAddress)
Return the failure history for a bookie.long
getBookiePendingRequests(BookieId bookieSocketAddress)
Returns pending requests to a bookie.
-
-
-
Method Detail
-
getBookieFailureHistory
long getBookieFailureHistory(BookieId bookieSocketAddress)
Return the failure history for a bookie.- Parameters:
bookieSocketAddress
-- Returns:
- failed entries on a bookie, -1 if there have been no failures
-
getBookiePendingRequests
long getBookiePendingRequests(BookieId bookieSocketAddress)
Returns pending requests to a bookie.- Parameters:
bookieSocketAddress
-- Returns:
- number of pending requests
-
-