@Override
    public String toString() {
        return shouldRestartConnector()
                ? String.format("plan to restart connector and %d of %d tasks for %s", restartTaskCount(), totalTaskCount(), request)
                : String.format("plan to restart %d of %d tasks for %s", restartTaskCount(), totalTaskCount(), request);
    }
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