Class MoveRegionsOfTableAction

java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.MoveRegionsOfTableAction

public class MoveRegionsOfTableAction extends Action
Action that tries to move every region of a table.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • sleepTime

      private final long sleepTime
    • tableName

      private final org.apache.hadoop.hbase.TableName tableName
    • maxTime

      private final long maxTime
  • Constructor Details

    • MoveRegionsOfTableAction

      public MoveRegionsOfTableAction(long sleepTime, long maxSleepTime, org.apache.hadoop.hbase.TableName tableName)
  • Method Details

    • getLogger

      protected org.slf4j.Logger getLogger()
      Description copied from class: Action
      Retrieve the instance's Logger, for use throughout the class hierarchy.
      Specified by:
      getLogger in class Action
    • perform

      public void perform() throws Exception
      Overrides:
      perform in class Action
      Throws:
      Exception
    • getServers

      static org.apache.hadoop.hbase.ServerName[] getServers(org.apache.hadoop.hbase.client.Admin admin) throws IOException
      Throws:
      IOException
    • moveRegion

      static void moveRegion(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.ServerName[] servers, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.slf4j.Logger logger)