public interface MDStoreTransactionManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit(String transactionId,
String mdstoreId,
MDStore currentMDStore)
Commit the transaction.
|
void |
createMDStore(String mdId)
Creates the md store.
|
void |
dropMDStore(String mdId)
Drop md store.
|
Boolean |
dropTransaction(String mdId,
String idToDrop)
Manually drop an old collection assigned to a particular mdStore
|
Boolean |
dropUsed(String mdId,
String idToDrop)
Manually drop an old collection assigned to a particular mdStore
|
void |
garbage()
Start the garbage collection of the old mdstore not used
|
MDStoreManagerInfo |
getInfoForCurrentMdStore(String mdStoreId)
Return a JSON about the transaction assigned to a particular mdstore
|
String |
getMDStoreCollection(String mdId)
Gets the MD store collection.
|
String |
readMdStore(String mdStoreId)
Book a a current mdstore, so the transaction manager can't delete during a possible commit, until the resultset associate has not
expired
|
String |
startTransaction(String mdId,
boolean refresh)
Start a new transaction for writing in the mdstore this will create a temporary mdstore in which save the content. and after finished
switch it to the existing one
|
void |
verifyConsistency()
Verify consistency.
|
void verifyConsistency()
throws eu.dnetlib.data.mdstore.MDStoreServiceException
eu.dnetlib.data.mdstore.MDStoreServiceException - the MD store service exceptionvoid createMDStore(String mdId) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - the md ideu.dnetlib.data.mdstore.MDStoreServiceException - the MD store service exceptionvoid dropMDStore(String mdId) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - the md ideu.dnetlib.data.mdstore.MDStoreServiceException - the MD store service exceptionString getMDStoreCollection(String mdId) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - the md ideu.dnetlib.data.mdstore.MDStoreServiceException - the MD store service exceptionString startTransaction(String mdId, boolean refresh) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - refresh - eu.dnetlib.data.mdstore.MDStoreServiceException - if the mdStore Id doesn't exists in the metadataboolean commit(String transactionId, String mdstoreId, MDStore currentMDStore) throws eu.dnetlib.data.mdstore.MDStoreServiceException
transactionId - the transaction idmdstoreId - the mdstore idcurrentMDStore - the current md storeeu.dnetlib.data.mdstore.MDStoreServiceException - the MD store service exceptionString readMdStore(String mdStoreId) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdStoreId - eu.dnetlib.data.mdstore.MDStoreServiceExceptionMDStoreManagerInfo getInfoForCurrentMdStore(String mdStoreId) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdStoreId - eu.dnetlib.data.mdstore.MDStoreServiceExceptionBoolean dropUsed(String mdId, String idToDrop) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - : the id of the mdStoreidToDrop - : The id of the collection to be droppedeu.dnetlib.data.mdstore.MDStoreServiceExceptionBoolean dropTransaction(String mdId, String idToDrop) throws eu.dnetlib.data.mdstore.MDStoreServiceException
mdId - : the id of the mdStoreidToDrop - : The id of the collection to be droppedeu.dnetlib.data.mdstore.MDStoreServiceExceptionvoid garbage()
throws eu.dnetlib.data.mdstore.MDStoreServiceException
eu.dnetlib.data.mdstore.MDStoreServiceExceptionCopyright © 2025. All rights reserved.