Class SharedDataStoreUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.blob.datastore.SharedDataStoreUtils
-
public class SharedDataStoreUtils extends Object
Utility class forSharedDataStore
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SharedDataStoreUtils.SharedStoreRecordType
Encapsulates the different type of records at the data store root.
-
Constructor Summary
Constructors Constructor Description SharedDataStoreUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataRecord
getEarliestRecord(List<DataRecord> recs)
Gets the earliest record of the available reference records.static boolean
isShared(BlobStore blobStore)
Checks if the blob store shared.static Set<String>
refsNotAvailableFromRepos(List<DataRecord> repos, List<DataRecord> refs)
Repositories from which marked references not available.static Set<String>
refsNotOld(List<DataRecord> repos, List<DataRecord> refs, long referenceTime)
Repositories from which marked references older than retention time are not available.
-
-
-
Method Detail
-
isShared
public static boolean isShared(BlobStore blobStore)
Checks if the blob store shared.- Parameters:
blobStore
- the blob store- Returns:
- true if shared
-
getEarliestRecord
public static DataRecord getEarliestRecord(List<DataRecord> recs)
Gets the earliest record of the available reference records.- Parameters:
recs
- the recs- Returns:
- the earliest record
-
refsNotAvailableFromRepos
public static Set<String> refsNotAvailableFromRepos(List<DataRecord> repos, List<DataRecord> refs)
Repositories from which marked references not available.- Parameters:
repos
- the reposrefs
- the refs- Returns:
- the sets the sets whose references not available
-
refsNotOld
public static Set<String> refsNotOld(List<DataRecord> repos, List<DataRecord> refs, long referenceTime)
Repositories from which marked references older than retention time are not available.- Parameters:
repos
- the reposrefs
- the refsreferenceTime
- the retention time- Returns:
- the sets the sets whose references not available
-
-