boolean isSuccessFactorMet() {
      int minSuccessNeeded = (int) Math.ceil(successFactor * totalHosts);
      return minSuccessNeeded <= numSucceeded;
    }
Role successful means the role is successful enough to
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java