class RangerAuditDbCheck extends AbstractCheckDescriptor {

  @Override
  public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException {

    String propertyValue = getProperty(request, "ranger-admin-site", "ranger.audit.source.type");

    if (null != propertyValue && propertyValue.equalsIgnoreCase("db")) {
      prerequisiteCheck.getFailedOn().add(serviceName);
      prerequisiteCheck.setStatus(PrereqCheckStatus.WARNING);
      prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request));
    }
  }

  public  RangerAuditDbCheck();

}