diff options
author | Selvasundaram <selvam@gluster.com> | 2011-08-19 17:29:39 +0530 |
---|---|---|
committer | Selvasundaram <selvam@gluster.com> | 2011-08-19 17:42:13 +0530 |
commit | cb3cbfb8307158167cf5fa88b2b61322be1c59a4 (patch) | |
tree | 7c87b661796525e44991706f0d88a1f52aaa2bb2 /src/com.gluster.storage.management.client/src/com/gluster/storage/management | |
parent | 7a84412ff29f0c0491d8f01528eedf2774bb1eeb (diff) |
Create volume replica / stripe count made as optional parameter
Getting Gluster servers, optional "detail" paramter added and default value is "false"
Diffstat (limited to 'src/com.gluster.storage.management.client/src/com/gluster/storage/management')
-rw-r--r-- | src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java index 2dd660bf..e6ca0457 100644 --- a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java +++ b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java @@ -18,6 +18,7 @@ *******************************************************************************/ package com.gluster.storage.management.client; +import static com.gluster.storage.management.core.constants.RESTConstants.QUERY_PARAM_DETAILS; import static com.gluster.storage.management.core.constants.RESTConstants.RESOURCE_PATH_CLUSTERS; import static com.gluster.storage.management.core.constants.RESTConstants.RESOURCE_SERVERS; @@ -55,7 +56,9 @@ public class GlusterServersClient extends AbstractClient { } public List<GlusterServer> getServers() { - List<GlusterServer> servers = ((GlusterServerListResponse) fetchResource(GlusterServerListResponse.class)).getServers(); + MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl(); + queryParams.putSingle(QUERY_PARAM_DETAILS, "true"); + List<GlusterServer> servers = ((GlusterServerListResponse) fetchResource(queryParams, GlusterServerListResponse.class)).getServers(); for(GlusterServer server : servers) { GlusterCoreUtil.updateServerNameOnDevices(server); } |