public void setMaintenanceModeHostExcluded(boolean excluded) {
    hostsInMaintenanceModeExcluded = excluded;
  }
Sets whether hosts in maintenance mode should be excluded from the command.

@param excluded
         {@code true} to exclude any hosts in maintenance mode from the
         command, {@code false} to include hosts which are in maintenance
         mode.
ambari-server/src/main/java/org/apache/ambari/server/controller/ActionExecutionContext.java