public class BalancerBandwidthCommand extends org.apache.hadoop.hdfs.server.protocol.DatanodeCommand
DatanodeCommand.Finalize| Constructor and Description |
|---|
BalancerBandwidthCommand(long bandwidth)
Balancer Bandwidth Command constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBalancerBandwidthValue()
Get current value of the max balancer bandwidth in bytes per second.
|
void |
readFields(DataInput in)
Reads the bandwidth payload from the Balancer Bandwidth Command packet.
|
void |
write(DataOutput out)
Writes the bandwidth payload to the Balancer Bandwidth Command packet.
|
public BalancerBandwidthCommand(long bandwidth)
bandwidth - Blanacer bandwidth in bytes per second.public long getBalancerBandwidthValue()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.hdfs.server.protocol.ServerCommandout - DataOutput stream used for writing commands to the datanode.IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.hdfs.server.protocol.ServerCommandin - DataInput stream used for reading commands to the datanode.IOExceptionCopyright © 2013 Apache Software Foundation. All Rights Reserved.