public boolean isRunning(String connName) {
        WorkerConnector workerConnector = connectors.get(connName);
        return workerConnector != null && workerConnector.isRunning();
    }
Return true if a connector with the given name is managed by this worker and is currently running.

@param connName the connector name.
@return true if the connector is running, false if the connector is not running or is not manages by this worker.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java