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.
|
getAction
public 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
在接口中 Writable
write
在类中 DatanodeCommand
out
- DataOutput stream used for writing commands to the datanode.IOException
public void readFields(DataInput in) throws IOException
readFields
在接口中 Writable
readFields
在类中 DatanodeCommand
in
- DataInput stream used for reading commands to the datanode.IOException
Copyright © 2009 The Apache Software Foundation