1
|
package eu.dnetlib.data.mdstore.repository;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import eu.dnetlib.data.mdstore.model.Metadata;
|
6
|
import eu.dnetlib.data.mdstore.model.Transaction;
|
7
|
|
8
|
/**
|
9
|
* Created by claudio on 30/03/2017.
|
10
|
*/
|
11
|
public interface MetadataRepositoryCustom {
|
12
|
|
13
|
void bootstrap();
|
14
|
|
15
|
List<String> listMdIds();
|
16
|
|
17
|
List<String> listCurrentIds();
|
18
|
|
19
|
long sumOfSize(String format, String layout, String interpretation);
|
20
|
|
21
|
void commit(Metadata m, String txId);
|
22
|
|
23
|
void addTransaction(String mdId, Transaction t);
|
24
|
|
25
|
void dropTransaction(final String mdId, final String idToDrop);
|
26
|
|
27
|
void addReadLock(String mdId, String currentId);
|
28
|
|
29
|
void dropReadLock(String mdId, String currentId);
|
30
|
}
|