summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.client
diff options
context:
space:
mode:
authorDhandapani <dhandapani@gluster.com>2011-06-27 16:21:16 +0530
committerDhandapani <dhandapani@gluster.com>2011-06-28 12:47:35 +0530
commiteb58d91bb775a897c39ac7303993b361b48f35a9 (patch)
tree0ec8d05d3d2ec59f32ad3c555f63b7afb70c0dd9 /src/com.gluster.storage.management.client
parentc741ee60d0c6ca99a794d4e1fcd5b3911aa9df67 (diff)
Story #1: Rebalance Volume
Diffstat (limited to 'src/com.gluster.storage.management.client')
-rw-r--r--src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/VolumesClient.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/VolumesClient.java b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/VolumesClient.java
index 338caf89..4ec3ff13 100644
--- a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/VolumesClient.java
+++ b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/VolumesClient.java
@@ -230,7 +230,7 @@ public class VolumesClient extends AbstractClient {
putRequest(volumeName + "/" + RESTConstants.RESOURCE_BRICKS, form);
}
- public void rebalanceVolume(String volumeName, boolean fixLayout, boolean migrateData, boolean forcedDataMigrate) {
+ public void rebalanceStart(String volumeName, Boolean fixLayout, Boolean migrateData, Boolean forcedDataMigrate) {
Form form = new Form();
form.add(RESTConstants.FORM_PARAM_OPERATION, RESTConstants.TASK_REBALANCE_START);
form.add(RESTConstants.FORM_PARAM_FIX_LAYOUT, fixLayout);
@@ -238,6 +238,18 @@ public class VolumesClient extends AbstractClient {
form.add(RESTConstants.FORM_PARAM_FORCED_DATA_MIGRATE, forcedDataMigrate);
putRequest(volumeName, form);
}
+
+ public void rebalanceStatus(String volumeName) {
+ Form form = new Form();
+ form.add(RESTConstants.FORM_PARAM_OPERATION, RESTConstants.TASK_REBALANCE_STATUS);
+ putRequest(volumeName, form);
+ }
+
+ public void rebalanceStop(String volumeName) {
+ Form form = new Form();
+ form.add(RESTConstants.FORM_PARAM_OPERATION, RESTConstants.TASK_REBALANCE_STOP);
+ putRequest(volumeName, form);
+ }
public static void main(String[] args) {
UsersClient usersClient = new UsersClient();