Package org.apache.pulsar.client.admin
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
Modifier and TypeMethodDescriptiongetBundleRange(String topic) Get a bundle range of a topic.getBundleRangeAsync(String topic) Get a bundle range of a topic asynchronously.lookupPartitionedTopic(String topic) Lookup a partitioned topic.Lookup a partitioned topic.lookupTopic(String topic) Lookup a topic.lookupTopicAsync(String topic) Lookup a topic asynchronously.
-
Method Details
-
lookupTopic
Lookup a topic.- Parameters:
topic-- Returns:
- the broker URL that serves the topic
- Throws:
PulsarAdminException
-
lookupTopicAsync
Lookup a topic asynchronously.- Parameters:
topic-- Returns:
- the broker URL that serves the topic
-
lookupPartitionedTopic
Lookup a partitioned topic.- Parameters:
topic-- Returns:
- the broker URLs that serves the topic
- Throws:
PulsarAdminException
-
lookupPartitionedTopicAsync
Lookup a partitioned topic.- Parameters:
topic-- Returns:
- the broker URLs that serves the topic
-
getBundleRange
Get a bundle range of a topic.- Parameters:
topic-- Returns:
- Throws:
PulsarAdminException
-
getBundleRangeAsync
Get a bundle range of a topic asynchronously.- Parameters:
topic-- Returns:
-