public class BalancerBandwidthCommand extends DatanodeCommand
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BBC_VERSION |
FINALIZE, REGISTER| 构造器和说明 |
|---|
BalancerBandwidthCommand(long bandwidth)
Balancer Bandwidth Command constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getBalancerBandwidthValue()
Get current value of the max balancer bandwidth in bytes per second.
|
int |
getBalancerBandwidthVersion()
Get current value of the balancer bandwidth version.
|
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.
|
getActionpublic static final int BBC_VERSION
public BalancerBandwidthCommand(long bandwidth)
bandwidth - Blanacer bandwidth in bytes per second.public int getBalancerBandwidthVersion()
public long getBalancerBandwidthValue()
public void write(DataOutput out) throws IOException
write 在接口中 Writablewrite 在类中 DatanodeCommandout - DataOutput stream used for writing commands to the datanode.IOExceptionpublic void readFields(DataInput in) throws IOException
readFields 在接口中 WritablereadFields 在类中 DatanodeCommandin - DataInput stream used for reading commands to the datanode.IOExceptionCopyright © 2009 The Apache Software Foundation