private boolean isRestarting(String state) {
        return AbstractStatus.State.RESTARTING.toString().equalsIgnoreCase(state);
    }
Get the total number of tasks in the connector.

@return the total number of tasks
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartPlan.java