Skip to content

Commit

Permalink
Merge pull request #27517 from vespa-engine/hmusum/remove-hostStates-…
Browse files Browse the repository at this point in the history
…from-response

Remove hostStates from response, not used anymore
  • Loading branch information
hakonhall authored Jun 22, 2023
2 parents f403069 + bc304f1 commit 67fe9c6
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,16 +33,6 @@ public ApplicationInstance applicationInstance() {
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;
Expand Down

0 comments on commit 67fe9c6

Please sign in to comment.