Daniel Erez has uploaded a new change for review.

Change subject: core: CinderVolumeDriver enum
......................................................................

core: CinderVolumeDriver enum

Added CinderVolumeDriver enum with
RBD (Ceph's RADOS Block Devices) key.

Change-Id: Ic7775461446af0a725c24fc66d882342d3b38ceb
Bug-Url: https://bugzilla.redhat.com/1185826
Signed-off-by: Daniel Erez <de...@redhat.com>
---
A 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/CinderVolumeDriver.java
1 file changed, 26 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/55/39655/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/CinderVolumeDriver.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/CinderVolumeDriver.java
new file mode 100644
index 0000000..48fc8bd
--- /dev/null
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/CinderVolumeDriver.java
@@ -0,0 +1,26 @@
+package org.ovirt.engine.core.common.businessentities.storage;
+
+import org.ovirt.engine.core.common.businessentities.Nameable;
+
+public enum CinderVolumeDriver implements Nameable {
+    RBD("rbd");
+
+    private String name;
+
+    private CinderVolumeDriver(String name) {
+        this.name = name;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public static CinderVolumeDriver forValue(String name) {
+        for (CinderVolumeDriver type : values()) {
+            if (type.getName().startsWith(name)) {
+                return type;
+            }
+        }
+        return null;
+    }
+}


-- 
To view, visit https://gerrit.ovirt.org/39655
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7775461446af0a725c24fc66d882342d3b38ceb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to