From 55612668e6776b9930458a32d34b71f2a067c137 Mon Sep 17 00:00:00 2001 From: "ievgen.degtiarenko" Date: Tue, 31 Oct 2023 15:51:09 +0100 Subject: [PATCH] add toString --- .../repositories/RepositoryData.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/src/main/java/org/elasticsearch/repositories/RepositoryData.java b/server/src/main/java/org/elasticsearch/repositories/RepositoryData.java index 1c5ea5a2b0012..17ac4ef38f1b6 100644 --- a/server/src/main/java/org/elasticsearch/repositories/RepositoryData.java +++ b/server/src/main/java/org/elasticsearch/repositories/RepositoryData.java @@ -1229,6 +1229,22 @@ public int hashCode() { return Objects.hash(snapshotState, version, startTimeMillis, endTimeMillis, slmPolicy); } + @Override + public String toString() { + return "SnapshotDetails{" + + "snapshotState=" + + snapshotState + + ", version=" + + version + + ", startTimeMillis=" + + startTimeMillis + + ", endTimeMillis=" + + endTimeMillis + + ", slmPolicy='" + + slmPolicy + + "'}"; + } + public static SnapshotDetails fromSnapshotInfo(SnapshotInfo snapshotInfo) { return new SnapshotDetails( snapshotInfo.state(),