You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2013/11/23 01:45:18 UTC
[3/3] git commit: updated refs/heads/4.3 to 4de858c
Expose getPrimaryDataStore(String uuid) through the DatastoreManager interface so it can be used clients.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4de858c7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4de858c7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4de858c7
Branch: refs/heads/4.3
Commit: 4de858c7a96cba5e406cf43cac2fa7d5a5656443
Parents: c714a9f
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Mon Nov 18 14:11:18 2013 +0100
Committer: Edison Su <su...@gmail.com>
Committed: Fri Nov 22 16:22:38 2013 -0800
----------------------------------------------------------------------
.../engine/subsystem/api/storage/DataStoreManager.java | 2 ++
.../cloudstack/storage/datastore/DataStoreManagerImpl.java | 5 +++++
2 files changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4de858c7/engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java
----------------------------------------------------------------------
diff --git a/engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java b/engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java
index 7fbec0a..210d4ae 100644
--- a/engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java
+++ b/engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java
@@ -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);
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4de858c7/engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java
----------------------------------------------------------------------
diff --git a/engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java b/engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java
index 88061aa..e6b2715 100644
--- a/engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java
+++ b/engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java
@@ -88,6 +88,11 @@ public class DataStoreManagerImpl implements DataStoreManager {
}
@Override
+ public DataStore getPrimaryDataStore(String storeUuid) {
+ return primaryStoreMgr.getPrimaryDataStore(storeUuid);
+ }
+
+ @Override
public List<DataStore> getImageCacheStores(Scope scope) {
return imageDataStoreMgr.listImageCacheStores(scope);
}