public static class RpcResponseMessage.GetFileRes extends Object implements RpcProtocol.NameNodeRpcMessage, RpcGetFile
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
| Constructor and Description |
|---|
GetFileRes() |
| Modifier and Type | Method and Description |
|---|---|
short |
getError() |
FileInfo |
getFile() |
BlockInfo |
getFileBlock() |
short |
getType() |
void |
setError(short error) |
void |
setFileBlock(BlockInfo blockInfo) |
void |
setFileInfo(FileInfo fileInfo) |
void |
shipToken() |
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 FileInfo getFile()
getFile in interface RpcGetFilepublic void setFileInfo(FileInfo fileInfo)
public BlockInfo getFileBlock()
getFileBlock in interface RpcGetFilepublic void setFileBlock(BlockInfo blockInfo)
public void shipToken()
public short getError()
getError in interface RpcResponsepublic void setError(short error)
Copyright © 2018 The Apache Software Foundation. All rights reserved.