org.apache.hadoop.hdfs.server.protocol
Class BalancerBandwidthCommand

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.ServerCommand
      extended by org.apache.hadoop.hdfs.server.protocol.DatanodeCommand
          extended by org.apache.hadoop.hdfs.server.protocol.BalancerBandwidthCommand

public class BalancerBandwidthCommand
extends org.apache.hadoop.hdfs.server.protocol.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 Summary
BalancerBandwidthCommand(long bandwidth)
          Balancer Bandwidth Command constructor.
 
Method Summary
 long getBalancerBandwidthValue()
          Get current value of the max balancer bandwidth in bytes per second.
 
Methods inherited from class org.apache.hadoop.hdfs.server.protocol.ServerCommand
getAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BalancerBandwidthCommand

public BalancerBandwidthCommand(long bandwidth)
Balancer Bandwidth Command constructor.

Parameters:
bandwidth - Blanacer bandwidth in bytes per second.
Method Detail

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.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.