Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Bandejiya <[email protected]>
  • Loading branch information
Arpit-Bandejiya committed Mar 26, 2024
1 parent 7e3d69c commit 113aa6c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,6 +23,7 @@
*
* @opensearch.internal
*/
@PublicApi(since = "2.13.0")
public class PeerRecoveryStats implements Writeable, ToXContentFragment {

// Stats for total started recoveries.
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 113aa6c

Please sign in to comment.