Revision 50874
Added by Claudio Atzori about 6 years ago
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/exporter/datasource/clients/ISClientImpl.java | ||
---|---|---|
58 | 58 |
private OperationManager operationManager; |
59 | 59 |
|
60 | 60 |
@Override |
61 |
@Cacheable("datasources-is-cache")
|
|
61 |
@Cacheable("indexdsinfo-cache")
|
|
62 | 62 |
public IndexDsInfo calculateCurrentIndexDsInfo() throws DsmException { |
63 | 63 |
log.warn("calculateCurrentIndexDsInfo(): not using cache"); |
64 | 64 |
final String[] arr; |
... | ... | |
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
@Override |
76 |
@Cacheable("datasources-is-cache")
|
|
76 |
@Cacheable("objectstoreid-cache")
|
|
77 | 77 |
public String getObjectStoreId(final String dsId, final Queue<Throwable> errors) throws IOException { |
78 | 78 |
log.warn(String.format("getObjectStoreId(%s): not using cache", dsId)); |
79 | 79 |
final String xqueryTemplate = _getQuery(config.getFindObjectStore()); |
... | ... | |
86 | 86 |
} |
87 | 87 |
|
88 | 88 |
@Override |
89 |
@Cacheable("datasources-is-cache")
|
|
89 |
@Cacheable("context-cache")
|
|
90 | 90 |
public Map<String, Context> getFunderContextMap() throws IOException { |
91 | 91 |
return _processContext( |
92 | 92 |
new LinkedBlockingQueue<>(), |
... | ... | |
94 | 94 |
} |
95 | 95 |
|
96 | 96 |
@Override |
97 |
@Cacheable("datasources-is-cache")
|
|
97 |
@Cacheable("context-cache")
|
|
98 | 98 |
public Map<String, Context> getCommunityContextMap() throws IOException { |
99 | 99 |
return _processContext( |
100 | 100 |
new LinkedBlockingQueue<>(), |
modules/dnet-openaire-exporter/trunk/src/main/resources/ehcache.xml | ||
---|---|---|
16 | 16 |
<persistence strategy="localTempSwap" /> |
17 | 17 |
</cache> |
18 | 18 |
|
19 |
<cache name="datasources-is-cache" |
|
19 |
<cache name="indexdsinfo-cache" |
|
20 |
maxEntriesLocalHeap="500" |
|
21 |
maxEntriesLocalDisk="1000" |
|
22 |
eternal="false" |
|
23 |
diskSpoolBufferSizeMB="1" |
|
24 |
timeToIdleSeconds="43200" timeToLiveSeconds="43200" |
|
25 |
memoryStoreEvictionPolicy="LFU" |
|
26 |
transactionalMode="off"> |
|
27 |
<persistence strategy="localTempSwap" /> |
|
28 |
</cache> |
|
29 |
|
|
30 |
<cache name="objectstoreid-cache" |
|
31 |
maxEntriesLocalHeap="500" |
|
32 |
maxEntriesLocalDisk="1000" |
|
33 |
eternal="false" |
|
34 |
diskSpoolBufferSizeMB="1" |
|
35 |
timeToIdleSeconds="43200" timeToLiveSeconds="43200" |
|
36 |
memoryStoreEvictionPolicy="LFU" |
|
37 |
transactionalMode="off"> |
|
38 |
<persistence strategy="localTempSwap" /> |
|
39 |
</cache> |
|
40 |
|
|
41 |
<cache name="context-cache" |
|
20 | 42 |
maxEntriesLocalHeap="100" |
21 | 43 |
maxEntriesLocalDisk="500" |
22 | 44 |
eternal="false" |
Also available in: Unified diff
added dedicated caches