summaryrefslogtreecommitdiffstats
path: root/com.gluster.storage.management.core
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-03-28 17:55:00 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-03-28 17:55:00 +0530
commitb27c5d68d3ffa47c92e0fcd7d0873ac2d6b8fca8 (patch)
tree4104c16d5107628e4302c4eeab6d6d3d73ad716c /com.gluster.storage.management.core
parent1e988cd864827cbfaba2d6d215200b0cd3ddb0bb (diff)
Story #15 - "Volume Options" View - New classes to fetch volume options defaults
Signed-off-by: Shireesh Anjal <shireesh@gluster.com>
Diffstat (limited to 'com.gluster.storage.management.core')
-rw-r--r--com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/VolumeOptionInfo.java66
1 files changed, 66 insertions, 0 deletions
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/VolumeOptionInfo.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/VolumeOptionInfo.java
new file mode 100644
index 00000000..44e45df5
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/VolumeOptionInfo.java
@@ -0,0 +1,66 @@
+/**
+ * VolumeOptionInfo.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.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * Class to hold information about a volume option
+ */
+@XmlRootElement(name = "volumeOption")
+public class VolumeOptionInfo {
+ private String name;
+ private String description;
+ private String defaultValue;
+
+ public VolumeOptionInfo() {
+ }
+
+ public VolumeOptionInfo(String name, String description, String defaultValue) {
+ setName(name);
+ setDescription(description);
+ setDefaultValue(defaultValue);
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+} \ No newline at end of file