Class ReconstructionService
- java.lang.Object
-
- fr.gouv.vitam.logbook.common.server.reconstruction.ReconstructionService
-
public class ReconstructionService extends java.lang.Object
Reconstruction of Vitam Logbook Operation Collections.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOGBOOK
-
Constructor Summary
Constructors Constructor Description ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchLogbookIndexManager indexManager, LogbookReconstructionMetricsCache reconstructionMetricsCache)
ConstructorReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookTransformData logbookTransformData, OffsetRepository offsetRepository, ElasticsearchLogbookIndexManager indexManager, LogbookReconstructionMetricsCache reconstructionMetricsCache)
Constructor for tests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReconstructionResponseItem
reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct logbook operation on a tenant
-
-
-
Field Detail
-
LOGBOOK
public static final java.lang.String LOGBOOK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReconstructionService
public ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchLogbookIndexManager indexManager, LogbookReconstructionMetricsCache reconstructionMetricsCache)
Constructor- Parameters:
vitamRepositoryProvider
- vitamRepositoryProvideroffsetRepository
-indexManager
-
-
ReconstructionService
public ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookTransformData logbookTransformData, OffsetRepository offsetRepository, ElasticsearchLogbookIndexManager indexManager, LogbookReconstructionMetricsCache reconstructionMetricsCache)
Constructor for tests- Parameters:
vitamRepositoryProvider
- vitamRepositoryProviderrecoverBackupService
- recoverBackupServicelogbookTransformData
- logbookTransformDataoffsetRepository
-indexManager
-
-
-
Method Detail
-
reconstruct
public ReconstructionResponseItem reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct logbook operation on a tenant- Parameters:
reconstructionItem
- request for reconstruction- Returns:
- response of reconstruction
- Throws:
java.lang.IllegalArgumentException
- invalid input
-
-