public boolean isValidDesiredState() {
    switch (this) {
      case INIT:
      case INSTALLED:
      case STARTED:
      case UNINSTALLED:
      case DISABLED:
        return true;
      default:
        return false;
    }
  }
Indicates whether or not it is a valid desired state.

@return true if this is a valid desired state.
ambari-server/src/main/java/org/apache/ambari/server/state/State.java