public void setRetryAllowed(boolean allowRetry){
    this.allowRetry = allowRetry;
  }
Sets whether the action can be retried if it fails.

@param allowRetry
         {@code true} if the action can be retried if it fails.
ambari-server/src/main/java/org/apache/ambari/server/controller/ActionExecutionContext.java