devmadhuu opened a new pull request, #11229: URL: https://github.com/apache/ozone/pull/11229
## What changes were proposed in this pull request? This PR is to introduce `S3StorageClass` — a small enum that maps AWS S3 storage class strings (`STANDARD`, `STANDARD_IA`, `GLACIER`) to Ozone storage policies (`HOT`, `WARM`, `COLD`). Two helper methods on the enum: - `fromS3StorageClass(String)` — parse the value of an incoming `x-amz-storage-class` header. - `fromStoragePolicy(StoragePolicy)` — go the other way, for building responses. This PR is infrastructure only — no caller uses `S3StorageClass` yet. The S3 write path (`PutObject`) and read path (`GetObject`) will start calling it in follow-up PRs. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16039 ## How was this patch tested? New unit test `TestS3StorageClass` covers: - S3 string → enum for all three values, plus rejects `null` and unknown values. - Ozone `StoragePolicy` → enum for all three, plus rejects `null`. - Round-trip consistency across all enum values. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
