private StatusAllHosts createStatusForAllHosts(List<HostStatus> hostStatuses) {
        int countUnknown = 0;
        int countInProgress = 0;
        int countFinished = 0;
        for (HostStatus hostStatus : hostStatuses) {
            switch (hostStatus.status) {
                case IN_PROGRESS -> countInProgress++;
                case FINISHED -> countFinished++;
                case UNKNOWN -> countUnknown++;
            }
        }

        if (countInProgress == 0 && countUnknown == 0)
            return new StatusAllHosts(Status.FINISHED, hostStatuses);
        else if (countInProgress == 0 && countFinished == 0)
            return new StatusAllHosts(Status.UNKNOWN, hostStatuses);
        else
            return new StatusAllHosts(Status.IN_PROGRESS, hostStatuses);
    }
File distribution status for each host in the application

@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/application/FileDistributionStatus.java