public boolean onlyFailed() {
        return onlyFailed;
    }
Determine whether only failed instances be restarted.

@return true if only failed instances should be restarted, or false if all applicable instances should be restarted
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartRequest.java