Expose getPrimaryDataStore(String uuid) through the DatastoreManager interface so it can be used clients.

This commit is contained in:
Hugo Trippaers 2013-11-18 14:11:18 +01:00
parent a9413707c9
commit bb8f8fb20b
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,8 @@ public interface DataStoreManager {
DataStore getPrimaryDataStore(long storeId);
DataStore getPrimaryDataStore(String storeUuid);
DataStore getDataStore(String uuid, DataStoreRole role);
List<DataStore> getImageStoresByScope(ZoneScope scope);

View File

@ -87,6 +87,11 @@ public class DataStoreManagerImpl implements DataStoreManager {
return primaryStoreMgr.getPrimaryDataStore(storeId);
}
@Override
public DataStore getPrimaryDataStore(String storeUuid) {
return primaryStoreMgr.getPrimaryDataStore(storeUuid);
}
@Override
public List<DataStore> getImageCacheStores(Scope scope) {
return imageDataStoreMgr.listImageCacheStores(scope);