public class OfferSyncService extends Object implements AutoCloseable
| Constructor and Description |
|---|
OfferSyncService(StorageDistribution distribution,
StorageConfiguration storageConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ExecutorService |
getExecutor() |
OfferSyncStatus |
getLastSynchronizationStatus() |
boolean |
isRunning() |
boolean |
startSynchronization(String sourceOffer,
String targetOffer,
String strategyId,
DataCategory dataCategory,
Long offset)
Synchronize an offer from another using the offset.
|
boolean |
startSynchronization(String sourceOffer,
String targetOffer,
String strategyId,
List<OfferPartialSyncItem> items) |
public OfferSyncService(StorageDistribution distribution, StorageConfiguration storageConfiguration)
public boolean startSynchronization(String sourceOffer, String targetOffer, String strategyId, List<OfferPartialSyncItem> items)
public boolean startSynchronization(String sourceOffer, String targetOffer, String strategyId, DataCategory dataCategory, Long offset)
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 synchronisationpublic boolean isRunning()
public OfferSyncStatus getLastSynchronizationStatus()
public ExecutorService getExecutor()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020 Vitam. All rights reserved.