@Override
public String getDescription() {
return "Waiting for job failure to be recorded. Conditions " +
"faildJobsCount=" + failedJobsCount.get() +
", finishedEvents=" + finishedEvents.size() +
", findJobs= " + jobManager.findJobs(JobManager.QueryType.ALL, TOPIC + "/failed", -1,
(Map<String, Object>[]) null).size()
+", queuedJobs=" + jobManager.getStatistics().getNumberOfQueuedJobs()
+", activeJobs=" + jobManager.getStatistics().getNumberOfActiveJobs();
}
}, CONDITION_TIMEOUT_SECONDS, CONDITION_INTERVAL_MILLIS);