Interface Bookies


  • public interface Bookies
    Admin interface for bookies rack placement management.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteBookieRackInfo​(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.
      BookieInfo getBookieRackInfo​(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.
      BookiesClusterInfo getBookies()
      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.
      BookiesRackConfiguration getBookiesRackInfo()
      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.
      void updateBookieRackInfo​(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

      • getBookiesRackInfoAsync

        java.util.concurrent.CompletableFuture<BookiesRackConfiguration> getBookiesRackInfoAsync()
        Gets the rack placement information for all the bookies in the cluster asynchronously.
      • getBookiesAsync

        java.util.concurrent.CompletableFuture<BookiesClusterInfo> getBookiesAsync()
        Gets discovery information for all the bookies in the cluster asynchronously.
      • 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 PulsarAdminException
        Remove 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 PulsarAdminException
        Updates 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.