From bc304f1c2f068004868d8f12c04a0bf012bd5794 Mon Sep 17 00:00:00 2001 From: Harald Musum Date: Thu, 22 Jun 2023 11:02:08 +0200 Subject: [PATCH] Remove hostStates from response, not used anymore --- .../resources/InstanceStatusResponse.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java index 5766c344e320..93395822b9d8 100644 --- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java +++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java @@ -6,10 +6,8 @@ import com.yahoo.vespa.applicationmodel.HostName; import com.yahoo.vespa.orchestrator.restapi.wire.WireHostInfo; -import java.util.Map; import java.util.Objects; import java.util.TreeMap; -import java.util.stream.Collectors; /* * @author andreer @@ -35,16 +33,6 @@ public ApplicationInstance applicationInstance() { return applicationInstance; } - @JsonProperty("hostStates") - public Map hostStates() { - // TODO: Remove this once all clients have been moved to hostStatus. - return hostInfos.entrySet().stream() - .collect(Collectors.toMap( - entry -> entry.getKey(), - entry -> entry.getValue().hostStatus() - )); - } - @JsonProperty("hostInfos") public TreeMap hostInfos() { return hostInfos;