Closed HotSushi closed 5 months ago
Laying foundations for storage part 3: StorageManager and an implementation for Hdfs: HdfsStorage.
StorageManager
HdfsStorage
StorageManager interface looks like
StorageManager { Storage getDefaultStorage() Storage getStorage(Type) }
It runs through all configured Storages and returns the appropriate storage for default or for particular type.
HdfsStorage is yet another implementation for Storage similar to LocalStorage. We've abstracted the common code for all storage-impls into BaseStorage
Storage
LocalStorage
Summary
Laying foundations for storage part 3:
StorageManager
and an implementation for Hdfs:HdfsStorage
.StorageManager interface looks like
It runs through all configured Storages and returns the appropriate storage for default or for particular type.
HdfsStorage
is yet another implementation forStorage
similar toLocalStorage
. We've abstracted the common code for all storage-impls into BaseStorageChanges
Testing Done