Class BalancerBandwidthCommand


public class BalancerBandwidthCommand extends DatanodeCommand
Balancer bandwidth command instructs each datanode to change its value for the max amount of network bandwidth it may use during the block balancing operation. The Balancer Bandwidth Command contains the new bandwidth value as its payload. The bandwidth value is in bytes per second.
  • Constructor Details

    • BalancerBandwidthCommand

      public BalancerBandwidthCommand(long bandwidth)
      Balancer Bandwidth Command constructor.
      Parameters:
      bandwidth - Blanacer bandwidth in bytes per second.
  • Method Details

    • getBalancerBandwidthValue

      public long getBalancerBandwidthValue()
      Get current value of the max balancer bandwidth in bytes per second.
      Returns:
      bandwidth Blanacer bandwidth in bytes per second for this datanode.