接口 Bookies


  • public interface Bookies
    Admin interface for bookies rack placement management.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      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.
    • 方法详细资料

      • 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.
        抛出:
        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.
        抛出:
        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.