public class OAISetsCounter extends Object
| Constructor and Description |
|---|
OAISetsCounter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeCallback(Callable<?> callback) |
eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader |
getConfigurationReader() |
MongoSetCollection |
getMongoSetCollection() |
OAIHelper |
getOaiSetCounterHelper() |
protected List<eu.dnetlib.data.information.oai.publisher.info.MDFInfo> |
listProcessableMDFInfo(String storeId) |
void |
setConfigurationReader(eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader configurationReader) |
void |
setMongoSetCollection(MongoSetCollection mongoSetCollection) |
void |
setOaiSetCounterHelper(OAIHelper oaiHelper) |
void |
updateConfigurationCounts(String storeId,
String dbName,
Callable<?> callback,
Callable<?> failCallback)
Update counts for configured OAI sets and all md formats.
|
void |
updateCounts(eu.dnetlib.data.information.oai.publisher.info.MDFInfo mdf,
String dbName,
Callable<?> callback,
Callable<?> failCallback) |
void |
updateCounts(String storeId,
String dbName,
Callable<?> callback,
Callable<?> failCallback)
Update counts for all OAI sets.
|
public void updateCounts(String storeId, String dbName, Callable<?> callback, Callable<?> failCallback)
If a non blank storeId is given, counts are updated only for those mdPreromfix served by the given store.
Otherwise all counts are updated.
storeId - oai store id. Can be blank to execute over all metadata served by OAI.callback - callback to execute when the execution is successfulfailCallback - to execute when the execution failspublic void updateCounts(eu.dnetlib.data.information.oai.publisher.info.MDFInfo mdf,
String dbName,
Callable<?> callback,
Callable<?> failCallback)
public void updateConfigurationCounts(String storeId, String dbName, Callable<?> callback, Callable<?> failCallback)
callback - callback to execute when the execution is successfulfailCallback - to execute when the execution failsprotected void executeCallback(Callable<?> callback)
protected List<eu.dnetlib.data.information.oai.publisher.info.MDFInfo> listProcessableMDFInfo(String storeId)
public eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader getConfigurationReader()
public void setConfigurationReader(eu.dnetlib.data.information.oai.publisher.conf.OAIConfigurationReader configurationReader)
public MongoSetCollection getMongoSetCollection()
public void setMongoSetCollection(MongoSetCollection mongoSetCollection)
public OAIHelper getOaiSetCounterHelper()
public void setOaiSetCounterHelper(OAIHelper oaiHelper)
Copyright © 2026. All rights reserved.