From 113aa6c0fe1a471c2bdcee411912805f2568a127 Mon Sep 17 00:00:00 2001 From: Arpit Bandejiya Date: Tue, 26 Mar 2024 15:47:44 +0530 Subject: [PATCH] Refactor code Signed-off-by: Arpit Bandejiya --- .../org/opensearch/indices/recovery/PeerRecoveryStats.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/main/java/org/opensearch/indices/recovery/PeerRecoveryStats.java b/server/src/main/java/org/opensearch/indices/recovery/PeerRecoveryStats.java index dcce34d84a0cd..4b7d4b29a1656 100644 --- a/server/src/main/java/org/opensearch/indices/recovery/PeerRecoveryStats.java +++ b/server/src/main/java/org/opensearch/indices/recovery/PeerRecoveryStats.java @@ -8,6 +8,7 @@ package org.opensearch.indices.recovery; +import org.opensearch.common.annotation.PublicApi; import org.opensearch.core.common.io.stream.StreamInput; import org.opensearch.core.common.io.stream.StreamOutput; import org.opensearch.core.common.io.stream.Writeable; @@ -22,6 +23,7 @@ * * @opensearch.internal */ +@PublicApi(since = "2.13.0") public class PeerRecoveryStats implements Writeable, ToXContentFragment { // Stats for total started recoveries. @@ -85,6 +87,9 @@ public long getTotalCancelledRecoveries() { return totalCancelledRecoveries; } + /* + * Stores the fields for PeerRecoveryStats response + */ public static final class Fields { static final String PEER_RECOVERY_STATS = "peer_recovery_stats"; static final String TOTAL_STARTED_RECOVERIES = "total_started_recoveries";