Package org.apache.pulsar.client.admin
Interface Bookies
-
public interface BookiesAdmin interface for bookies rack placement management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteBookieRackInfo(java.lang.String bookieAddress)Remove rack placement information for a specific bookie in the cluster.java.util.concurrent.CompletableFuture<java.lang.Void>deleteBookieRackInfoAsync(java.lang.String bookieAddress)Remove rack placement information for a specific bookie in the cluster asynchronously.BookieInfogetBookieRackInfo(java.lang.String bookieAddress)Gets the rack placement information for a specific bookie in the cluster.java.util.concurrent.CompletableFuture<BookieInfo>getBookieRackInfoAsync(java.lang.String bookieAddress)Gets the rack placement information for a specific bookie in the cluster asynchronously.BookiesClusterInfogetBookies()Gets discovery information for all the bookies in the cluster.java.util.concurrent.CompletableFuture<BookiesClusterInfo>getBookiesAsync()Gets discovery information for all the bookies in the cluster asynchronously.BookiesRackConfigurationgetBookiesRackInfo()Gets the rack placement information for all the bookies in the cluster.java.util.concurrent.CompletableFuture<BookiesRackConfiguration>getBookiesRackInfoAsync()Gets the rack placement information for all the bookies in the cluster asynchronously.voidupdateBookieRackInfo(java.lang.String bookieAddress, java.lang.String group, BookieInfo bookieInfo)Updates the rack placement information for a specific bookie in the cluster.java.util.concurrent.CompletableFuture<java.lang.Void>updateBookieRackInfoAsync(java.lang.String bookieAddress, java.lang.String group, BookieInfo bookieInfo)Updates the rack placement information for a specific bookie in the cluster asynchronously.
-
-
-
Method Detail
-
getBookiesRackInfo
BookiesRackConfiguration getBookiesRackInfo() throws PulsarAdminException
Gets the rack placement information for all the bookies in the cluster.- Throws:
PulsarAdminException
-
getBookiesRackInfoAsync
java.util.concurrent.CompletableFuture<BookiesRackConfiguration> getBookiesRackInfoAsync()
Gets the rack placement information for all the bookies in the cluster asynchronously.
-
getBookies
BookiesClusterInfo getBookies() throws PulsarAdminException
Gets discovery information for all the bookies in the cluster.- Throws:
PulsarAdminException
-
getBookiesAsync
java.util.concurrent.CompletableFuture<BookiesClusterInfo> getBookiesAsync()
Gets discovery information for all the bookies in the cluster asynchronously.
-
getBookieRackInfo
BookieInfo getBookieRackInfo(java.lang.String bookieAddress) throws PulsarAdminException
Gets the rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
getBookieRackInfoAsync
java.util.concurrent.CompletableFuture<BookieInfo> getBookieRackInfoAsync(java.lang.String bookieAddress)
Gets the rack placement information for a specific bookie in the cluster asynchronously.
-
deleteBookieRackInfo
void deleteBookieRackInfo(java.lang.String bookieAddress) throws PulsarAdminExceptionRemove rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
deleteBookieRackInfoAsync
java.util.concurrent.CompletableFuture<java.lang.Void> deleteBookieRackInfoAsync(java.lang.String bookieAddress)
Remove rack placement information for a specific bookie in the cluster asynchronously.
-
updateBookieRackInfo
void updateBookieRackInfo(java.lang.String bookieAddress, java.lang.String group, BookieInfo bookieInfo) throws PulsarAdminExceptionUpdates the rack placement information for a specific bookie in the cluster.- Throws:
PulsarAdminException
-
updateBookieRackInfoAsync
java.util.concurrent.CompletableFuture<java.lang.Void> updateBookieRackInfoAsync(java.lang.String bookieAddress, java.lang.String group, BookieInfo bookieInfo)Updates the rack placement information for a specific bookie in the cluster asynchronously.
-
-