Class OfferSyncService
java.lang.Object
fr.gouv.vitam.storage.engine.server.offersynchronization.OfferSyncService
- All Implemented Interfaces:
AutoCloseable
Manages offer synchronization service.
-
Constructor Summary
ConstructorsConstructorDescriptionOfferSyncService(StorageDistribution distribution, StorageConfiguration storageConfiguration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanbooleanstartSynchronization(String sourceOffer, String targetOffer, String strategyId, DataCategory dataCategory, Long offset) Synchronize an offer from another using the offset.booleanstartSynchronization(String sourceOffer, String targetOffer, String strategyId, List<OfferPartialSyncItem> items)
-
Constructor Details
-
OfferSyncService
public OfferSyncService(StorageDistribution distribution, StorageConfiguration storageConfiguration) Constructor.
-
-
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 offertargetOffer- the identifier of the target offerstrategyId- the identifier of the strategy containing the two offersoffset- the offset of the process of the synchronisation
-
isRunning
public boolean isRunning() -
getLastSynchronizationStatus
-
getExecutor
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-