Class RestoreBackupService


  • public class RestoreBackupService
    extends java.lang.Object
    Service used to recover a Backup copy of logbook operation Vitam collection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.util.List<OfferLog>> getListing​(java.lang.String strategy, long offset, int limit)
      Retrieve list of offer log defining objects to reconstruct from offer log
      LogbookBackupModel loadData​(java.lang.String strategy, java.lang.String filename, long offset)
      Load data from storage
      • Methods inherited from class java.lang.Object

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

      • RestoreBackupService

        public RestoreBackupService()
        Constructor
      • RestoreBackupService

        public RestoreBackupService​(StorageClientFactory storageClientFactory)
        Constructor for tests
        Parameters:
        storageClientFactory - storage client factory
    • Method Detail

      • getListing

        public java.util.Iterator<java.util.List<OfferLog>> getListing​(java.lang.String strategy,
                                                                       long offset,
                                                                       int limit)
        Retrieve list of offer log defining objects to reconstruct from offer log
        Parameters:
        strategy - storage strategy
        offset - offset
        limit - limit
        Returns:
        list of offer log by bulk
        Throws:
        VitamRuntimeException - storage error
        java.lang.IllegalArgumentException - input error