public void setPredicate(String predicateString) throws InvalidQueryException {
    this.predicate = predicateCompiler.compile(predicateString);
    this.predicateString = predicateString;
  }
Set the host predicate for the host group.

@param predicateString  host predicate as a string

@throws InvalidQueryException if compilation of the predicate fails
ambari-server/src/main/java/org/apache/ambari/server/topology/HostGroupInfo.java