public static class RpcResponseMessage.RenameRes extends Object implements RpcProtocol.NameNodeRpcMessage, RpcRenameFile
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
| Constructor and Description |
|---|
RenameRes() |
| Modifier and Type | Method and Description |
|---|---|
BlockInfo |
getDstBlock() |
FileInfo |
getDstFile() |
FileInfo |
getDstParent() |
short |
getError() |
BlockInfo |
getSrcBlock() |
FileInfo |
getSrcFile() |
FileInfo |
getSrcParent() |
short |
getType() |
void |
setDstBlock(BlockInfo dstBlock) |
void |
setDstFile(FileInfo dstFile) |
void |
setDstParent(FileInfo dstParent) |
void |
setError(short error) |
void |
setSrcBlock(BlockInfo srcBlock) |
void |
setSrcFile(FileInfo srcFile) |
void |
setSrcParent(FileInfo srcParent) |
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 getSrcParent()
getSrcParent in interface RpcRenameFilepublic FileInfo getSrcFile()
getSrcFile in interface RpcRenameFilepublic FileInfo getDstParent()
getDstParent in interface RpcRenameFilepublic FileInfo getDstFile()
getDstFile in interface RpcRenameFilepublic void setSrcParent(FileInfo srcParent)
public void setSrcFile(FileInfo srcFile)
public void setDstParent(FileInfo dstParent)
public void setDstFile(FileInfo dstFile)
public short getError()
getError in interface RpcResponsepublic void setError(short error)
public void setSrcBlock(BlockInfo srcBlock)
public void setDstBlock(BlockInfo dstBlock)
public BlockInfo getSrcBlock()
getSrcBlock in interface RpcRenameFilepublic BlockInfo getDstBlock()
getDstBlock in interface RpcRenameFileCopyright © 2018 The Apache Software Foundation. All rights reserved.