public class RpcDispatcher extends Object implements RpcConnection
| Constructor and Description |
|---|
RpcDispatcher(ConcurrentLinkedQueue<RpcConnection> connectionList) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RpcFuture<RpcCreateFile> |
createFile(FileName filename,
CrailNodeType type,
int storageClass,
int locationClass,
boolean enumerable) |
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) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateInstancepublic RpcDispatcher(ConcurrentLinkedQueue<RpcConnection> connectionList)
public RpcFuture<RpcCreateFile> createFile(FileName filename, CrailNodeType type, int storageClass, int locationClass, boolean enumerable) throws IOException
createFile in interface RpcConnectionIOExceptionpublic RpcFuture<RpcGetFile> getFile(FileName filename, boolean writeable) throws IOException
getFile in interface RpcConnectionIOExceptionpublic RpcFuture<RpcVoid> setFile(FileInfo fileInfo, boolean close) throws IOException
setFile in interface RpcConnectionIOExceptionpublic RpcFuture<RpcDeleteFile> removeFile(FileName filename, boolean recursive) throws IOException
removeFile in interface RpcConnectionIOExceptionpublic RpcFuture<RpcRenameFile> renameFile(FileName srcHash, FileName dstHash) throws IOException
renameFile in interface RpcConnectionIOExceptionpublic RpcFuture<RpcGetBlock> getBlock(long fd, long token, long position, long capacity) throws IOException
getBlock in interface RpcConnectionIOExceptionpublic RpcFuture<RpcGetLocation> getLocation(FileName fileName, long position) throws IOException
getLocation in interface RpcConnectionIOExceptionpublic RpcFuture<RpcVoid> setBlock(BlockInfo blockInfo) throws Exception
setBlock in interface RpcConnectionExceptionpublic RpcFuture<RpcGetDataNode> getDataNode(DataNodeInfo dnInfo) throws Exception
getDataNode in interface RpcConnectionExceptionpublic RpcFuture<RpcVoid> dumpNameNode() throws Exception
dumpNameNode in interface RpcConnectionExceptionpublic RpcFuture<RpcPing> pingNameNode() throws Exception
pingNameNode in interface RpcConnectionExceptionpublic void close()
throws Exception
close in interface RpcConnectionExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.