Project

General

Profile

« Previous | Next » 

Revision 54115

remoed deprecated methods to retrieve the first harvest date from the workflow logger db

View differences:

DsmCore.java
306 306
		return dsInfo;
307 307
	}
308 308

  
309
	@Deprecated
310
	private void getFirstHarvestingDate(final String dsId,
311
			final CountDownLatch outerLatch,
312
			final Queue<Throwable> errors,
313
			final DatasourceInfo dsInfo) {
314
		Futures.addCallback(
315
				executor.submit(() -> mongoLoggerClient.firstHarvestDate(dsId)),
316
				new FutureCallback<String>() {
317
					@Override
318
					public void onSuccess(@Nullable final String firstHarvestDate) {
319
						dsInfo.setFirstHarvestDate(firstHarvestDate);
320
						outerLatch.countDown();
321
					}
322

  
323
					@Override
324
					public void onFailure(final Throwable e) {
325
						log.error(ExceptionUtils.getStackTrace(e));
326
						errors.offer(e);
327
						outerLatch.countDown();
328
					}
329
				}, executor);
330
	}
331

  
332 309
	private void getAggregationHistory(final String dsId,
333 310
			final CountDownLatch outerLatch,
334 311
			final Queue<Throwable> errors,

Also available in: Unified diff