Sahina Bose has uploaded a new change for review.

Change subject: gluster:Support Striped_replicate volume type
......................................................................

gluster:Support Striped_replicate volume type

Add STRIPED_REPLICATE as an enum value in
GlusterVolumeType

Change-Id: I517c1e9e41f1bb68626d5a8a45d679208934d98f
Bug-Url: https://bugzilla.redhat.com/970759
Signed-off-by: Sahina Bose <sab...@redhat.com>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeType.java
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GlusterVolumesListReturnForXmlRpc.java
2 files changed, 13 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/81/15381/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeType.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeType.java
index 8c8b52a..4e2c16e 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeType.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeType.java
@@ -26,5 +26,10 @@
      * Files striped across all servers of a stripe set (defined by {@link 
GlusterVolumeEntity#getStripeCount()} and
      * brick order), and distributed across all stripe sets of the volume
      */
-    DISTRIBUTED_STRIPE;
+    DISTRIBUTED_STRIPE,
+    /**
+     * Files striped across all servers of a stripe set (defined by {@link 
GlusterVolumeEntity#getStripeCount()} and
+     * brick order), and replicated across all replica sets of the volume
+     */
+    STRIPED_REPLICATE;
 }
diff --git 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GlusterVolumesListReturnForXmlRpc.java
 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GlusterVolumesListReturnForXmlRpc.java
index 667860f..9283f57 100644
--- 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GlusterVolumesListReturnForXmlRpc.java
+++ 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GlusterVolumesListReturnForXmlRpc.java
@@ -35,7 +35,7 @@
     private static final String STRIPE_COUNT = "stripeCount";
 
     private Guid clusterId;
-    private Map<Guid, GlusterVolumeEntity> volumes = new HashMap<Guid, 
GlusterVolumeEntity>();
+    private final Map<Guid, GlusterVolumeEntity> volumes = new HashMap<Guid, 
GlusterVolumeEntity>();
     private static Log log = 
LogFactory.getLog(GlusterVolumesListReturnForXmlRpc.class);
     private static final GlusterDBUtils dbUtils = GlusterDBUtils.getInstance();
 
@@ -76,6 +76,12 @@
         case DISTRIBUTED_STRIPE:
             volume.setStripeCount(Integer.valueOf((String) 
map.get(STRIPE_COUNT)));
             break;
+        case STRIPED_REPLICATE:
+            volume.setReplicaCount(Integer.valueOf((String) 
map.get(REPLICA_COUNT)));
+            volume.setStripeCount(Integer.valueOf((String) 
map.get(STRIPE_COUNT)));
+            break;
+        default:
+            break;
         }
 
         for(Object transportType : (Object[])map.get(TRANSPORT_TYPE)) {


--
To view, visit http://gerrit.ovirt.org/15381
To unsubscribe, visit http://gerrit.ovirt.org/settings

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

Reply via email to