Class SharedDataStoreUtils


  • public class SharedDataStoreUtils
    extends java.lang.Object
    Utility class for SharedDataStore.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataRecord getEarliestRecord​(java.util.List<DataRecord> recs)
      Gets the earliest record of the available reference records.
      static boolean isShared​(BlobStore blobStore)
      Checks if the blob store shared.
      static java.util.Set<java.lang.String> refsNotAvailableFromRepos​(java.util.List<DataRecord> repos, java.util.List<DataRecord> refs)
      Repositories from which marked references not available.
      static java.util.Set<java.lang.String> refsNotOld​(java.util.List<DataRecord> repos, java.util.List<DataRecord> refs, long referenceTime)
      Repositories from which marked references older than retention time are not available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SharedDataStoreUtils

        public SharedDataStoreUtils()
    • 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​(java.util.List<DataRecord> recs)
        Gets the earliest record of the available reference records.
        Parameters:
        recs - the recs
        Returns:
        the earliest record
      • refsNotAvailableFromRepos

        public static java.util.Set<java.lang.String> refsNotAvailableFromRepos​(java.util.List<DataRecord> repos,
                                                                                java.util.List<DataRecord> refs)
        Repositories from which marked references not available.
        Parameters:
        repos - the repos
        refs - the refs
        Returns:
        the sets the sets whose references not available
      • refsNotOld

        public static java.util.Set<java.lang.String> refsNotOld​(java.util.List<DataRecord> repos,
                                                                 java.util.List<DataRecord> refs,
                                                                 long referenceTime)
        Repositories from which marked references older than retention time are not available.
        Parameters:
        repos - the repos
        refs - the refs
        referenceTime - the retention time
        Returns:
        the sets the sets whose references not available