public class OfferSyncProcess extends Object
Constructor and Description |
---|
OfferSyncProcess(RestoreOfferBackupService restoreOfferBackupService,
StorageDistribution distribution,
int bulkSize,
int offerSyncThreadPoolSize,
int offerSyncNumberOfRetries,
int offerSyncFirstAttemptWaitingTime,
int offerSyncWaitingTime) |
Modifier and Type | Method and Description |
---|---|
OfferSyncStatus |
getOfferSyncStatus() |
boolean |
isRunning() |
void |
synchronize(String sourceOffer,
String targetOffer,
String strategyId,
DataCategory dataCategory,
Long offset)
Synchronize an offer from another using the offset.
|
public OfferSyncProcess(RestoreOfferBackupService restoreOfferBackupService, StorageDistribution distribution, int bulkSize, int offerSyncThreadPoolSize, int offerSyncNumberOfRetries, int offerSyncFirstAttemptWaitingTime, int offerSyncWaitingTime)
public void synchronize(String sourceOffer, String targetOffer, String strategyId, DataCategory dataCategory, Long offset)
sourceOffer
- the identifier of the source offertargetOffer
- the identifier of the target offerstrategyId
- the strategy containing the two offersoffset
- the offset of the process of the synchronisationpublic boolean isRunning()
public OfferSyncStatus getOfferSyncStatus()
Copyright © 2019 Vitam. All rights reserved.