voldemort.client.rebalance
Class RebalanceBatchPlanProgressBar

java.lang.Object
  extended by voldemort.client.rebalance.RebalanceBatchPlanProgressBar

public class RebalanceBatchPlanProgressBar
extends java.lang.Object


Method Summary
 void beginTask(int taskId)
          Called whenever a rebalance task starts.
 void completeTask(int taskId, int partitionStoresMigrated)
          Called whenever a rebalance task completes.
 java.lang.String getPrettyProgressBar()
          Construct a pretty string documenting progress for this batch plan thus far.
 void updateProgressBar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beginTask

public void beginTask(int taskId)
Called whenever a rebalance task starts.

Parameters:
taskId -

completeTask

public void completeTask(int taskId,
                         int partitionStoresMigrated)
Called whenever a rebalance task completes. This means one task is done and some number of partition stores have been migrated.

Parameters:
taskId -
partitionStoresMigrated - Number of partition stores moved by this completed task.

getPrettyProgressBar

public java.lang.String getPrettyProgressBar()
Construct a pretty string documenting progress for this batch plan thus far.

Returns:
pretty string documenting progress

updateProgressBar

public void updateProgressBar()


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu