Package org.apache.pulsar.client.admin
Interface Lookup
-
public interface LookupThis 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.StringgetBundleRange(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.StringlookupTopic(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 PulsarAdminExceptionLookup 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 PulsarAdminExceptionLookup 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
-
getBundleRange
java.lang.String getBundleRange(java.lang.String topic) throws PulsarAdminExceptionGet a bundle range of a topic.- Parameters:
topic-- Returns:
- Throws:
PulsarAdminException
-
getBundleRangeAsync
java.util.concurrent.CompletableFuture<java.lang.String> getBundleRangeAsync(java.lang.String topic)
Get a bundle range of a topic asynchronously.- Parameters:
topic-- Returns:
-
-