@Override
  public void addIntoSecondRetryQueue(AnalyticJob job) {
    int secondRetryQueueSize;
    synchronized (_secondRetryQueue) {
      _secondRetryQueue.add(job.setTimeToSecondRetry());
      secondRetryQueueSize = _secondRetryQueue.size();
    }
    MetricsController.setSecondRetryQueueSize(secondRetryQueueSize);
    logger.info("Second Retry queue size is " + secondRetryQueueSize);
  }
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