@Override
  public void addIntoRetries(AnalyticJob promise) {
    _firstRetryQueue.add(promise);
    int retryQueueSize = _firstRetryQueue.size();
    MetricsController.setRetryQueueSize(retryQueueSize);
    logger.info("Retry queue size is " + retryQueueSize);
  }
Fetch all the succeeded and failed applications/analytic jobs from the resource manager.

@return a list of {@link AnalyticJob} objects based on applications fetched from RM.
@throws IOException
@throws AuthenticationException
app/com/linkedin/drelephant/analysis/AnalyticJobGeneratorHadoop2.java