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.Writable
write
in class org.apache.hadoop.hdfs.server.protocol.ServerCommand
out
- DataOutput stream used for writing commands to the datanode.IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.hdfs.server.protocol.ServerCommand
in
- DataInput stream used for reading commands to the datanode.IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.