From 722ce7fa1d2d72c6e7daa486b0a21e17ae6636da Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Thu, 18 Jul 2024 12:48:22 -0700 Subject: [PATCH] Make new listener API public Signed-off-by: Siddhant Deshmukh --- .../tasks/SearchTaskResourceOperationsListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java b/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java index 56686388f7aa1..e7f752c7af183 100644 --- a/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java +++ b/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java @@ -13,9 +13,11 @@ import org.opensearch.action.search.SearchRequestOperationsListener; /** - * SearchTaskResourceOperationsListener subscriber for operations on search tasks resource usages + * SearchTaskResourceOperationsListener subscriber for operations on search tasks resource usages. + * Listener ensures to refreshResourceStats on request end capturing the search task resource usage + * upon request completion. * - * @opensearch.internal + * @PublicApi */ public final class SearchTaskResourceOperationsListener extends SearchRequestOperationsListener { private final TaskResourceTrackingService taskResourceTrackingService;