summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core
diff options
context:
space:
mode:
authorShireesh Anjal <anjalshireesh@gmail.com>2011-11-25 05:56:36 -0800
committerShireesh Anjal <anjalshireesh@gmail.com>2011-11-25 05:56:36 -0800
commit92c52d8edf285945d31e446503fc742fde9dcc49 (patch)
tree5789d783a07bfaf883d7e589f42c27987dc0432f /src/com.gluster.storage.management.core/src/com/gluster/storage/management/core
parent45e68b0cae66c4e67098bfab5877c172ed8c584e (diff)
parent229ef07aa2235d92e41c3880099b1257ce0f30fd (diff)
Merge pull request #7 from Selvasundaram/master
Disk Initialization enhanced with user selectable file system and mount point
Diffstat (limited to 'src/com.gluster.storage.management.core/src/com/gluster/storage/management/core')
-rw-r--r--src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java2
-rw-r--r--src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/response/FsTypeListResponse.java47
2 files changed, 49 insertions, 0 deletions
diff --git a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java
index cc32d109..4b1251b6 100644
--- a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java
+++ b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/RESTConstants.java
@@ -44,6 +44,7 @@ public class RESTConstants {
public static final String RESOURCE_KEYS = "keys";
public static final String RESOURCE_STATISTICS = "statistics";
public static final String RESOURCE_USERS = "users";
+ public static final String RESOURCE_FSTYPES = "fstypes";
public static final String TASK_START = "start";
public static final String TASK_PAUSE = "pause";
@@ -87,6 +88,7 @@ public class RESTConstants {
public static final String FORM_PARAM_OLD_PASSWORD = "oldPassword";
public static final String FORM_PARAM_NEW_PASSWORD = "newPassword";
public static final String FORM_PARAM_FORCE = "force";
+ public static final String FORM_PARAM_MOUNTPOINT = "mountPoint";
public static final String PATH_PARAM_FORMAT = "format";
public static final String PATH_PARAM_VOLUME_NAME = "volumeName";
diff --git a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/response/FsTypeListResponse.java b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/response/FsTypeListResponse.java
new file mode 100644
index 00000000..0235fa5f
--- /dev/null
+++ b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/response/FsTypeListResponse.java
@@ -0,0 +1,47 @@
+/**
+ * FsTypesListResponse.java
+ *
+ * Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com>
+ * This file is part of Gluster Management Console.
+ *
+ * Gluster Management Console is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Gluster Management Console is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+package com.gluster.storage.management.core.response;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement(name = "fsTypes")
+public class FsTypeListResponse {
+ private List<String> fsTypes;
+
+ public FsTypeListResponse() {
+ }
+
+ public FsTypeListResponse(List<String> fsTypes) {
+ setFsTypes(fsTypes);
+ }
+
+ @XmlElement(name = "fsType", type=String.class)
+ public List<String> getFsTypes() {
+ return fsTypes;
+ }
+
+ public void setFsTypes(List<String> fsTypes) {
+ this.fsTypes = fsTypes;
+ }
+}