diff options
| author | Shireesh Anjal <shireesh@gluster.com> | 2011-04-16 00:42:50 +0530 |
|---|---|---|
| committer | Shireesh Anjal <shireesh@gluster.com> | 2011-04-16 00:42:50 +0530 |
| commit | a907385e3ff254ae7a8c316ae7bf4ce1a5fcb491 (patch) | |
| tree | 54dad1997d1c8c06416e4e7879701fb22e111745 /src/com.gluster.storage.management.client | |
| parent | fc4b5612808484af3ec1d4d09e36a3146c491787 (diff) | |
Story#15 - Volume options view - integration with status line and volume summary view.
Diffstat (limited to 'src/com.gluster.storage.management.client')
| -rw-r--r-- | src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java index 018ab75f..c47830b2 100644 --- a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java +++ b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterDataModelManager.java @@ -397,15 +397,23 @@ public class GlusterDataModelManager { public List<VolumeOptionInfo> getVolumeOptionsDefaults() { return volumeOptionsDefaults; } - - public String getVolumeOptionDefaultValue(String optionKey) { + + public VolumeOptionInfo getVolumeOptionInfo(String optionKey) { for(VolumeOptionInfo info : volumeOptionsDefaults) { if(info.getName().equals(optionKey)) { - return info.getDefaultValue(); + return info; } } throw new GlusterRuntimeException("Invalid option key [" + optionKey - + "] passed to GlusterDataModelManager#getVolumeOptionDefaultValue"); + + "] passed to GlusterDataModelManager#getVolumeOptionInfo"); + } + + public String getVolumeOptionDefaultValue(String optionKey) { + return getVolumeOptionInfo(optionKey).getDefaultValue(); + } + + public String getVolumeOptionDesc(String optionKey) { + return getVolumeOptionInfo(optionKey).getDescription(); } public void setAccessControlList(Volume volume, String accessControlList) { |
