diff options
author | HÃ¥kon Hallingstad <hakon.hallingstad@gmail.com> | 2023-06-22 11:44:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 11:44:16 +0200 |
commit | 67fe9c6d3ee4ec4ef07596f3da27b1e291a2189d (patch) | |
tree | 23ac184e44aa65ef6eef1a9485065de204220dbc | |
parent | f403069d4be06425dfc101fc7468c0cb2f7afb4f (diff) | |
parent | bc304f1c2f068004868d8f12c04a0bf012bd5794 (diff) |
Merge pull request #27517 from vespa-engine/hmusum/remove-hostStates-from-response
Remove hostStates from response, not used anymore
-rw-r--r-- | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java | 12 |
1 files changed, 0 insertions, 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 5766c344e32..93395822b9d 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.ApplicationInstance; 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 class InstanceStatusResponse { return applicationInstance; } - @JsonProperty("hostStates") - public Map<HostName, String> 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<HostName, WireHostInfo> hostInfos() { return hostInfos; |