java.lang.Object
fr.gouv.vitam.storage.engine.server.offersynchronization.OfferSyncService
All Implemented Interfaces:
AutoCloseable

public class OfferSyncService extends Object implements AutoCloseable
Manages offer synchronization service.
  • Constructor Details

  • Method Details

    • startSynchronization

      public boolean startSynchronization(String sourceOffer, String targetOffer, String strategyId, List<OfferPartialSyncItem> items)
    • startSynchronization

      public boolean startSynchronization(String sourceOffer, String targetOffer, String strategyId, DataCategory dataCategory, Long offset)
      Synchronize an offer from another using the offset.
      Parameters:
      sourceOffer - the identifier of the source offer
      targetOffer - the identifier of the target offer
      strategyId - the identifier of the strategy containing the two offers
      offset - the offset of the process of the synchronisation
    • isRunning

      public boolean isRunning()
    • getLastSynchronizationStatus

      public OfferSyncStatus getLastSynchronizationStatus()
    • getExecutor

      public ExecutorService getExecutor()
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception