Package org.apache.pulsar.client.admin
Interface Bookies
public interface Bookies
Admin interface for bookies rack placement management.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteBookieRackInfo
(String bookieAddress) Remove rack placement information for a specific bookie in the cluster.deleteBookieRackInfoAsync
(String bookieAddress) Remove rack placement information for a specific bookie in the cluster asynchronously.getBookieRackInfo
(String bookieAddress) Gets the rack placement information for a specific bookie in the cluster.getBookieRackInfoAsync
(String bookieAddress) Gets the rack placement information for a specific bookie in the cluster asynchronously.Gets discovery information for all the bookies in the cluster.Gets discovery information for all the bookies in the cluster asynchronously.Gets the rack placement information for all the bookies in the cluster.Gets the rack placement information for all the bookies in the cluster asynchronously.void
updateBookieRackInfo
(String bookieAddress, String group, BookieInfo bookieInfo) Updates the rack placement information for a specific bookie in the cluster.updateBookieRackInfoAsync
(String bookieAddress, String group, BookieInfo bookieInfo) Updates the rack placement information for a specific bookie in the cluster asynchronously.
-
Method Details
-
getBookiesRackInfo
Gets the rack placement information for all the bookies in the cluster.- Throws:
PulsarAdminException
-
getBookiesRackInfoAsync
CompletableFuture<BookiesRackConfiguration> getBookiesRackInfoAsync()Gets the rack placement information for all the bookies in the cluster asynchronously. -
getBookies
Gets discovery information for all the bookies in the cluster.- Throws:
PulsarAdminException
-
getBookiesAsync
CompletableFuture<BookiesClusterInfo> getBookiesAsync()Gets discovery information for all the bookies in the cluster asynchronously. -
getBookieRackInfo
Gets the rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
getBookieRackInfoAsync
Gets the rack placement information for a specific bookie in the cluster asynchronously. -
deleteBookieRackInfo
Remove rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
deleteBookieRackInfoAsync
Remove rack placement information for a specific bookie in the cluster asynchronously. -
updateBookieRackInfo
void updateBookieRackInfo(String bookieAddress, String group, BookieInfo bookieInfo) throws PulsarAdminException Updates the rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
updateBookieRackInfoAsync
CompletableFuture<Void> updateBookieRackInfoAsync(String bookieAddress, String group, BookieInfo bookieInfo) Updates the rack placement information for a specific bookie in the cluster asynchronously.
-