summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.core
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-07-07 13:17:24 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-07-07 13:17:24 +0530
commitbcef8a077f87b760fd04be847676e7ab9000f6f3 (patch)
tree7e3094a3a1e69f7de40637624690433a5103f644 /src/com.gluster.storage.management.core
parent3c93882d99b55b4cae1474ac28d61782f986e9c2 (diff)
parent1e74112c748f1f872f80d2e539d29f7894f8ddc1 (diff)
Merge branch 'master' of github.com:gluster/console
Conflicts: src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java
Diffstat (limited to 'src/com.gluster.storage.management.core')
-rw-r--r--src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/GlusterConstants.java3
-rw-r--r--src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/InitDiskStatusResponse.java27
2 files changed, 18 insertions, 12 deletions
diff --git a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/GlusterConstants.java b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/GlusterConstants.java
index f48f33cf..567eda61 100644
--- a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/GlusterConstants.java
+++ b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/GlusterConstants.java
@@ -31,4 +31,7 @@ public class GlusterConstants {
};
public static final List<String> VOLUME_LOG_LEVELS_ARR = StringUtil.enumToArray(VOLUME_LOG_LEVELS.values());
+ public static final String FSTYPE_EXT_3 = "ext3";
+ public static final String FSTYPE_EXT_4 = "ext4";
+ public static final String FSTYPE_XFS = "xfs";
}
diff --git a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/InitDiskStatusResponse.java b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/InitDiskStatusResponse.java
index 1a448606..6d1e83e3 100644
--- a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/InitDiskStatusResponse.java
+++ b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/InitDiskStatusResponse.java
@@ -20,19 +20,21 @@
*******************************************************************************/
package com.gluster.storage.management.core.model;
+import javax.xml.bind.annotation.XmlRootElement;
-public class InitDiskStatusResponse extends Status {
+@XmlRootElement
+public class InitDiskStatusResponse {
public enum FORMAT_STATUS {
IN_PROGRESS, COMPLETED, NOT_RUNNING
};
- private String[] FORMAT_STATUS_STR = { "Inprogress", "Completed", "Notrunning" };
+ private String[] FORMAT_STATUS_STR = { "In Progress", "Completed", "Not Running" };
private String device;
private String message;
- private float total;
- private float completed;
+ private float totalBlocks;
+ private float completedBlocks;
private FORMAT_STATUS status;
public InitDiskStatusResponse() {
@@ -55,20 +57,21 @@ public class InitDiskStatusResponse extends Status {
this.message = message;
}
- public void setTotal(float total) {
- this.total = total;
+
+ public void setTotalBlocks(float totalBlocks) {
+ this.totalBlocks = totalBlocks;
}
- public float getTotal() {
- return total;
+ public float getTotalBlocks() {
+ return totalBlocks;
}
- public void setCompleted(float completed) {
- this.completed = completed;
+ public void setCompletedBlocks(float completedBlocks) {
+ this.completedBlocks = completedBlocks;
}
- public float getCompleted() {
- return completed;
+ public float getCompletedBlocks() {
+ return completedBlocks;
}
public String getStatusStr() {