org.apache.hadoop.hdfs.server.protocol
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
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.
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 |
BalancerBandwidthCommand
public BalancerBandwidthCommand(long bandwidth)
- Balancer Bandwidth Command constructor.
- Parameters:
bandwidth
- Blanacer bandwidth in bytes per second.
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.