For Java and Python libs: Develop a get_size() method within the IBucket module to retrieve the size of a specified object within a bucket-based storage system.
Functional Requirements:
- Object Identification: The method must accept a parameter that uniquely identifies the object within the bucket (e.g., object key or path).
- Size Retrieval: The method must retrieve and return the size of the specified object, typically in bytes.
- Error Handling: Implement appropriate error handling for scenarios such as:
- Object not found.
- Insufficient permissions.
- Connection errors.
Acceptance Criteria:
- The
get_size() method must accurately return the size of an existing object.
- The method must handle cases where the object does not exist, raising an appropriate exception or returning a designated error value.
- The method should be robust and handle potential errors gracefully.
- The method should be efficient.
For Java and Python libs: Develop a
get_size()method within the IBucket module to retrieve the size of a specified object within a bucket-based storage system.Functional Requirements:
Acceptance Criteria:
get_size()method must accurately return the size of an existing object.