@Override
    public int getErrorCount() {
      return errorCount;
    }
Service in charge to perform the cleanup/purge on the entities that support this functionality.
ambari-server/src/main/java/org/apache/ambari/server/cleanup/CleanupServiceImpl.java