wangjialing218 commented on a change in pull request #13184:
URL: https://github.com/apache/pulsar/pull/13184#discussion_r770339222
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
##########
@@ -515,6 +516,37 @@ public BundlesData getBundlesData(@PathParam("tenant")
String tenant,
return policies.bundles;
}
+ @GET
+ @Path("/{tenant}/{namespace}/bundleStats")
+ @ApiOperation(value = "Get all bundles split data of this namespace.")
+ @ApiResponses(value = {
+ @ApiResponse(code = 307, message = "Current broker doesn't serve
the namespace"),
+ @ApiResponse(code = 403, message = "Don't have admin permission")
})
+ public List<BundleStats> getBundleStats(@PathParam("tenant") String tenant,
+ @PathParam("namespace") String
namespace) {
+ validatePoliciesReadOnlyAccess();
+ validateNamespaceName(tenant, namespace);
+ validateNamespaceOperation(NamespaceName.get(tenant, namespace),
NamespaceOperation.GET_BUNDLE);
+
+ return internalGetAllBundleStats();
+ }
+
+ @GET
+ @Path("/{tenant}/{namespace}/{bundle}/stats")
+ @ApiOperation(value = "Get the bundles split data.")
+ @ApiResponses(value = {
+ @ApiResponse(code = 307, message = "Current broker doesn't serve
the namespace"),
Review comment:
I'll add lookup logic to make sure get a single bundle stats
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]