Class MetadataReconstructionService
java.lang.Object
fr.gouv.vitam.metadata.core.reconstruction.service.MetadataReconstructionService
Reconstruction of Vitam Metadata Collections.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache) ConstructorMetadataReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookLifeCyclesClientFactory logbookLifecycleClientFactory, StorageClientFactory storageClientFactory, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache) Constructor for tests -
Method Summary
Modifier and TypeMethodDescriptionvoidpurgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection) Find all older (AU/GOT) where only graph data are reconstructed As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from Elastcisearchreconstruct(ReconstructionRequestItem reconstructionItem) Reconstruct a collection
-
Constructor Details
-
MetadataReconstructionService
public MetadataReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache) Constructor- Parameters:
vitamRepositoryProvider- vitamRepositoryProvideroffsetRepository- offsetRepositoryindexManager-
-
MetadataReconstructionService
public MetadataReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookLifeCyclesClientFactory logbookLifecycleClientFactory, StorageClientFactory storageClientFactory, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache) Constructor for tests- Parameters:
vitamRepositoryProvider- vitamRepositoryProviderrecoverBackupService- recoverBackupServicelogbookLifecycleClientFactory- logbookLifecycleClientFactorystorageClientFactory- storageClientFactoryoffsetRepository-reconstructionMetricsCache-
-
-
Method Details
-
reconstruct
Reconstruct a collection- Parameters:
reconstructionItem- request for reconstruction- Returns:
- response of reconstruction
- Throws:
DatabaseException- database exceptionIllegalArgumentException- invalid input
-
purgeReconstructedDocumentsWithGraphOnlyData
Find all older (AU/GOT) where only graph data are reconstructed As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from Elastcisearch
-