private static int getStatePort(ServiceInfo service) {
        return service.getPorts().stream()
                .filter(port -> port.getTags().contains("state"))
                .map(PortInfo::getPort)
                .findAny()
                .orElseThrow(() -> new IllegalStateException("Cluster controller container has no container port"));
    }
Retrieves reindexing status from cluster controllers over HTTP

@author bjorncs
configserver/src/main/java/com/yahoo/vespa/config/server/application/DefaultClusterReindexingStatusClient.java