public boolean isFailedState() {
    return FAILED_STATUSES.contains(this);
  }
Indicates whether or not it is a valid failure state.

@return true if this is a valid failure state.
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/HostRoleStatus.java