Package fr.gouv.vitam.workspace.common
Class ThresholdCheckResult
java.lang.Object
fr.gouv.vitam.workspace.common.ThresholdCheckResult
Result of a workspace upload threshold check for the current tenant.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for deserializationThresholdCheckResult(boolean uploadAllowed, String reason) -
Method Summary
Modifier and TypeMethodDescriptionstatic ThresholdCheckResultallowed()booleanstatic ThresholdCheckResultsetUploadAllowed(boolean uploadAllowed) static ThresholdCheckResult
-
Field Details
-
PLATFORM_SATURATED
Reason returned when the platform-wide workspace storage is saturated.- See Also:
-
TENANT_SATURATED
Reason returned when the current tenant workspace storage is saturated.- See Also:
-
-
Constructor Details
-
ThresholdCheckResult
public ThresholdCheckResult()Default constructor for deserialization -
ThresholdCheckResult
-
-
Method Details
-
allowed
-
platformSaturated
-
tenantSaturated
-
isUploadAllowed
public boolean isUploadAllowed() -
setUploadAllowed
-
getReason
-
setReason
-