public static class RpcResponseMessage.GetBlockRes extends Object implements RpcProtocol.NameNodeRpcMessage, RpcGetBlock
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
| Constructor and Description |
|---|
GetBlockRes() |
| Modifier and Type | Method and Description |
|---|---|
BlockInfo |
getBlockInfo() |
short |
getError() |
short |
getType() |
void |
setBlockInfo(BlockInfo blockInfo) |
void |
setError(short error) |
int |
size() |
void |
update(ByteBuffer buffer) |
int |
write(ByteBuffer buffer) |
public int size()
public short getType()
getType in interface RpcProtocol.NameNodeRpcMessagepublic int write(ByteBuffer buffer)
public void update(ByteBuffer buffer)
public BlockInfo getBlockInfo()
getBlockInfo in interface RpcGetBlockpublic void setBlockInfo(BlockInfo blockInfo)
setBlockInfo in interface RpcGetBlockpublic short getError()
getError in interface RpcResponsepublic void setError(short error)
Copyright © 2018 The Apache Software Foundation. All rights reserved.