private static boolean isDownConsistent(Node node, boolean isDown) {
        return isDown ? node.history().isDown() : node.history().isUp();
    }
Get node by given hostname and application. The applicationLock must be held when calling this
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeHealthTracker.java