cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [36/50] [abbrv] git commit: updated refs/heads/disk-cache to 6f3e4d3
Date Wed, 20 Nov 2013 14:51:06 GMT
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/bb8f8fb2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bb8f8fb2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bb8f8fb2

Branch: refs/heads/disk-cache
Commit: bb8f8fb20b0e73d323301c5e084d4550f951c5db
Parents: a941370
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Mon Nov 18 14:11:18 2013 +0100
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Mon Nov 18 14:27:06 2013 +0100

----------------------------------------------------------------------
 .../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/bb8f8fb2/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/bb8f8fb2/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);
     }


Mime
View raw message