Interface Lookup


  • public interface Lookup
    This is an interface class to allow using command line tool to quickly lookup the broker serving the topic.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getBundleRange​(java.lang.String topic)
      Get a bundle range of a topic.
      java.util.concurrent.CompletableFuture<java.lang.String> getBundleRangeAsync​(java.lang.String topic)
      Get a bundle range of a topic asynchronously.
      java.util.Map<java.lang.String,​java.lang.String> lookupPartitionedTopic​(java.lang.String topic)
      Lookup a partitioned topic.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String>> lookupPartitionedTopicAsync​(java.lang.String topic)
      Lookup a partitioned topic.
      java.lang.String lookupTopic​(java.lang.String topic)
      Lookup a topic.
      java.util.concurrent.CompletableFuture<java.lang.String> lookupTopicAsync​(java.lang.String topic)
      Lookup a topic asynchronously.
    • Method Detail

      • lookupTopic

        java.lang.String lookupTopic​(java.lang.String topic)
                              throws PulsarAdminException
        Lookup a topic.
        Parameters:
        topic -
        Returns:
        the broker URL that serves the topic
        Throws:
        PulsarAdminException
      • lookupTopicAsync

        java.util.concurrent.CompletableFuture<java.lang.String> lookupTopicAsync​(java.lang.String topic)
        Lookup a topic asynchronously.
        Parameters:
        topic -
        Returns:
        the broker URL that serves the topic
      • lookupPartitionedTopic

        java.util.Map<java.lang.String,​java.lang.String> lookupPartitionedTopic​(java.lang.String topic)
                                                                               throws PulsarAdminException
        Lookup a partitioned topic.
        Parameters:
        topic -
        Returns:
        the broker URLs that serves the topic
        Throws:
        PulsarAdminException
      • lookupPartitionedTopicAsync

        java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String>> lookupPartitionedTopicAsync​(java.lang.String topic)
        Lookup a partitioned topic.
        Parameters:
        topic -
        Returns:
        the broker URLs that serves the topic
      • getBundleRangeAsync

        java.util.concurrent.CompletableFuture<java.lang.String> getBundleRangeAsync​(java.lang.String topic)
        Get a bundle range of a topic asynchronously.
        Parameters:
        topic -
        Returns: