Package org.duracloud.mill.bitlog
Interface BitLogStore
- All Known Implementing Classes:
JpaBitLogStore
public interface BitLogStore
- Author:
- Daniel Bernstein Date: Apr 25, 2014
-
Method Summary
Modifier and TypeMethodDescriptionorg.duracloud.mill.db.model.BitIntegrityReportaddReport(String account, String storeId, String spaceId, String reportSpaceId, String reportContentId, org.duracloud.reportdata.bitintegrity.BitIntegrityReportResult result, Date completionDate) voidgetBitLogItems(String account, String storeId, String spaceId) Returns a iterator of BitLogItems in chronological order.write(String accountId, String storeId, String spaceId, String contentId, Date timestamp, org.duracloud.storage.domain.StorageProviderType storeType, BitIntegrityResult result, String contentCheckSum, String storageProviderChecksum, String manifestChecksum, String details) Creates a new BitLogItem and writes it to the store.
-
Method Details
-
write
BitLogItem write(String accountId, String storeId, String spaceId, String contentId, Date timestamp, org.duracloud.storage.domain.StorageProviderType storeType, BitIntegrityResult result, String contentCheckSum, String storageProviderChecksum, String manifestChecksum, String details) throws ItemWriteFailedException Creates a new BitLogItem and writes it to the store.- Parameters:
accountId-storeId-spaceId-contentId-timestamp-storeType-result-contentCheckSum-storageProviderChecksum-manifestChecksum-details-- Returns:
- the newly created BitLogItem
- Throws:
ItemWriteFailedException
-
getBitLogItems
Returns a iterator of BitLogItems in chronological order. If no matches are found, the iterator's hasNext() method will return false.- Parameters:
account-storeId-spaceId-- Returns:
-
delete
- Parameters:
account-storeId-spaceId-
-
addReport
org.duracloud.mill.db.model.BitIntegrityReport addReport(String account, String storeId, String spaceId, String reportSpaceId, String reportContentId, org.duracloud.reportdata.bitintegrity.BitIntegrityReportResult result, Date completionDate) - Parameters:
account-storeId-spaceId-reportSpaceId-reportContentId-result-completionDate-- Returns:
-