Class BalancerBandwidthCommand
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.ServerCommand
org.apache.hadoop.hdfs.server.protocol.DatanodeCommand
org.apache.hadoop.hdfs.server.protocol.BalancerBandwidthCommand
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
ConstructorsConstructorDescriptionBalancerBandwidthCommand(long bandwidth) Balancer Bandwidth Command constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongGet current value of the max balancer bandwidth in bytes per second.Methods inherited from class org.apache.hadoop.hdfs.server.protocol.ServerCommand
getAction, toString
-
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.
-