Class SharedDataStoreUtils
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.SharedDataStoreUtils
Utility class for
SharedDataStore
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Encapsulates the different type of records at the data store root. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataRecord
getEarliestRecord
(List<DataRecord> recs) Gets the earliest record of the available reference records.static boolean
Checks if the blob store shared.refsNotAvailableFromRepos
(List<DataRecord> repos, List<DataRecord> refs) Repositories from which marked references not available.refsNotOld
(List<DataRecord> repos, List<DataRecord> refs, long referenceTime) Repositories from which marked references older than retention time are not available.
-
Constructor Details
-
SharedDataStoreUtils
public SharedDataStoreUtils()
-
-
Method Details
-
getEarliestRecord
Gets the earliest record of the available reference records.- Parameters:
recs
- the recs- Returns:
- the earliest record
-
refsNotAvailableFromRepos
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