@Override
  public String toString() {
    switch (state) {
      case STOPPED:
        return "STOPPED";
      case RUNNING:
        return "RUNNING";
      case CLOSED:
        return "CLOSED";
      default:
        return "UNKNOWN";
    }
  }
Returns the state in string form.
geode-core/src/main/java/org/apache/geode/cache/query/internal/CqStateImpl.java