Package eu.dnetlib.openaire.dsm.dao
Class MongoLoggerClientImpl
java.lang.Object
eu.dnetlib.openaire.dsm.dao.MongoLoggerClientImpl
- All Implemented Interfaces:
MongoLoggerClient
@Component
@ConditionalOnProperty(value="openaire.exporter.enable.dsm",
havingValue="true")
public class MongoLoggerClientImpl
extends Object
implements MongoLoggerClient
Created by claudio on 20/10/2016.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlongfindTransformationDateBeforeForApi(String api, long timestamp) Deprecated.
-
Constructor Details
-
MongoLoggerClientImpl
public MongoLoggerClientImpl()
-
-
Method Details
-
getAggregationHistoryV1
@Cacheable("dsm-aggregationhistory-cache-v1") @Deprecated public List<AggregationInfoV1> getAggregationHistoryV1(String dsId) throws DsmApiException Deprecated.- Specified by:
getAggregationHistoryV1in interfaceMongoLoggerClient- Throws:
DsmApiException
-
getAggregationHistoryV2
@Cacheable("dsm-aggregationhistory-cache-v2") public List<AggregationInfo> getAggregationHistoryV2(String dsId) throws DsmApiException - Specified by:
getAggregationHistoryV2in interfaceMongoLoggerClient- Throws:
DsmApiException
-
findTransformationDateBeforeForApi
@Cacheable("dsm-transformationdatebefore-cache") public long findTransformationDateBeforeForApi(String api, long timestamp) - Specified by:
findTransformationDateBeforeForApiin interfaceMongoLoggerClient
-
dropCache
@CacheEvict(cacheNames={"dsm-aggregationhistory-cache-v1","dsm-aggregationhistory-cache-v2","dsm-firstharvestdate-cache","dsm-transformationdatebefore-cache"}, allEntries=true) @Scheduled(fixedDelayString="${openaire.exporter.cache.ttl}") public void dropCache()- Specified by:
dropCachein interfaceMongoLoggerClient
-