You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/05 11:51:14 UTC
[GitHub] [pulsar] codelipenghui commented on a diff in pull request #15410: [improve][CLI] Support filtering system topic when get list.
codelipenghui commented on code in PR #15410:
URL: https://github.com/apache/pulsar/pull/15410#discussion_r865821604
##########
pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Topics.java:
##########
@@ -249,6 +250,49 @@ CompletableFuture<List<String>> getListAsync(String namespace, TopicDomain topic
*/
CompletableFuture<List<String>> getPartitionedTopicListAsync(String namespace);
+ /**
+ * Get the list of partitioned topics under a namespace.
+ * <p/>
+ * Response example:
+ *
+ * <pre>
+ * <code>["persistent://my-tenant/my-namespace/topic-1",
+ * "persistent://my-tenant/my-namespace/topic-2"]</code>
+ * </pre>
+ *
+ * @param namespace
+ * Namespace name
+ * @param params
+ * params to filter the results
+ * @return a list of partitioned topics
+ *
+ * @throws NotAuthorizedException
+ * Don't have admin permission
+ * @throws NotFoundException
+ * Namespace does not exist
+ * @throws PulsarAdminException
+ * Unexpected error
+ */
+ List<String> getPartitionedTopicList(String namespace, Map<QueryParam, Object> params) throws PulsarAdminException;
Review Comment:
We'd better use a `ListTopicsOptions` to keep consistent with the
```
TopicStats getStats(String topic, GetStatsOptions getStatsOptions) throws PulsarAdminException;
```
The `QueryParam` is not easy to use, through the API, we still don't know the value type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org