Class WorkspaceUploadThresholdService
java.lang.Object
fr.gouv.vitam.collect.internal.core.service.WorkspaceUploadThresholdService
Dedicated service centralizing the workspace upload threshold check shared by every collect upload entry point
(arborescence, CSV, JSONL, SIP). Calls the workspace threshold check API for the current tenant and refuses the
upload (by throwing a
CollectInternalStorageSaturatedException) when the platform or tenant storage is
saturated.-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceUploadThresholdService(WorkspaceCollectClientFactory workspaceCollectClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidRefuses the upload (by throwing aCollectInternalStorageSaturatedException) when the platform or tenant storage is saturated for the current tenant.
-
Constructor Details
-
WorkspaceUploadThresholdService
-
-
Method Details
-
checkWorkspaceUploadThreshold
Refuses the upload (by throwing aCollectInternalStorageSaturatedException) when the platform or tenant storage is saturated for the current tenant.- Throws:
CollectInternalException- if the threshold check call failsCollectInternalStorageSaturatedException- if the platform or tenant storage is saturated
-