[Remote Cluster State] Refactor BlobStoreformat classess #14117
Labels
Cluster Manager
ClusterManager:RemoteState
enhancement
Enhancement or improvement to existing feature or request
Is your feature request related to a problem? Please describe
There are 2 classes (ChecksumBlobStoreFormat and BaseBlobStoreFormat) which have the logic for serde of XContent objects. For serde of Writable objects, a new class ChecksumWritableBlobStoreForamt has been created. Some methods like serialize and deserialize have duplicate logic in these classes. Also since the BaseBlobStoreFormat is applicable for XContent objects, it is difficult to extend this logic for other objects.
Describe the solution you'd like
Create a interface which provides generic methods to serde of different types of objects. The common logic will be to added header and footer with checksum.
Related component
Cluster Manager
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: