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