public static class RpcResponseMessage.GetDataNodeRes extends Object implements RpcProtocol.NameNodeRpcMessage, RpcGetDataNode
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
| Constructor and Description |
|---|
GetDataNodeRes() |
| Modifier and Type | Method and Description |
|---|---|
short |
getError() |
DataNodeStatistics |
getStatistics() |
short |
getType() |
void |
setError(short error) |
void |
setFreeBlockCount(int blockCount) |
void |
setServiceId(long serviceId) |
int |
size() |
void |
update(ByteBuffer buffer) |
int |
write(ByteBuffer buffer) |
public void setError(short error)
public int size()
public short getType()
getType in interface RpcProtocol.NameNodeRpcMessagepublic int write(ByteBuffer buffer)
public void update(ByteBuffer buffer)
public DataNodeStatistics getStatistics()
getStatistics in interface RpcGetDataNodepublic void setFreeBlockCount(int blockCount)
public short getError()
getError in interface RpcResponsepublic void setServiceId(long serviceId)
Copyright © 2018 The Apache Software Foundation. All rights reserved.