public static class RpcResponseMessage.GetLocationRes extends Object implements RpcProtocol.NameNodeRpcMessage, RpcGetLocation
| Constructor and Description |
|---|
GetLocationRes() |
| Modifier and Type | Method and Description |
|---|---|
BlockInfo |
getBlockInfo() |
short |
getError() |
long |
getFd() |
short |
getType() |
void |
setBlockInfo(BlockInfo blockInfo) |
void |
setError(short error) |
void |
setFd(long fd) |
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() throws IOException
getBlockInfo in interface RpcGetLocationIOExceptionpublic void setBlockInfo(BlockInfo blockInfo)
public long getFd()
getFd in interface RpcGetLocationpublic void setFd(long fd)
public short getError()
getError in interface RpcResponsepublic void setError(short error)
Copyright © 2018 The Apache Software Foundation. All rights reserved.