aboutsummaryrefslogtreecommitdiffstats
path: root/orchestrator
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2023-06-22 11:02:08 +0200
committerHarald Musum <musum@yahooinc.com>2023-06-22 11:02:08 +0200
commitbc304f1c2f068004868d8f12c04a0bf012bd5794 (patch)
treec83e7820323aec2ce560d49b273f984fe12b82df /orchestrator
parent7322c3ebf5e117dab1983aa39bf68a69a5f189f2 (diff)
Remove hostStates from response, not used anymore
Diffstat (limited to 'orchestrator')
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/InstanceStatusResponse.java12
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;