public String state() {
        return state;
    }
Provides the current state of the connector or task.

@return state, never {@code null} or empty
connect/api/src/main/java/org/apache/kafka/connect/health/AbstractState.java