public interface RpcConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RpcFuture<RpcCreateFile> |
createFile(FileName filename,
CrailNodeType type,
int storageClass,
int locationClass,
boolean enumerable) |
static RpcConnection |
createInstance(String name) |
RpcFuture<RpcVoid> |
dumpNameNode() |
RpcFuture<RpcGetBlock> |
getBlock(long fd,
long token,
long position,
long capacity) |
RpcFuture<RpcGetDataNode> |
getDataNode(DataNodeInfo dnInfo) |
RpcFuture<RpcGetFile> |
getFile(FileName filename,
boolean writeable) |
RpcFuture<RpcGetLocation> |
getLocation(FileName fileName,
long position) |
RpcFuture<RpcPing> |
pingNameNode() |
RpcFuture<RpcDeleteFile> |
removeFile(FileName filename,
boolean recursive) |
RpcFuture<RpcRenameFile> |
renameFile(FileName srcHash,
FileName dstHash) |
RpcFuture<RpcVoid> |
setBlock(BlockInfo blockInfo) |
RpcFuture<RpcVoid> |
setFile(FileInfo fileInfo,
boolean close) |
RpcFuture<RpcCreateFile> createFile(FileName filename, CrailNodeType type, int storageClass, int locationClass, boolean enumerable) throws IOException
IOExceptionRpcFuture<RpcGetFile> getFile(FileName filename, boolean writeable) throws IOException
IOExceptionRpcFuture<RpcVoid> setFile(FileInfo fileInfo, boolean close) throws IOException
IOExceptionRpcFuture<RpcDeleteFile> removeFile(FileName filename, boolean recursive) throws IOException
IOExceptionRpcFuture<RpcRenameFile> renameFile(FileName srcHash, FileName dstHash) throws IOException
IOExceptionRpcFuture<RpcGetBlock> getBlock(long fd, long token, long position, long capacity) throws IOException
IOExceptionRpcFuture<RpcGetLocation> getLocation(FileName fileName, long position) throws IOException
IOExceptionRpcFuture<RpcGetDataNode> getDataNode(DataNodeInfo dnInfo) throws Exception
Exceptionstatic RpcConnection createInstance(String name) throws Exception
ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.