public interface NamenodeProtocol extends VersionedProtocol
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
versionID
3: new method added: getAccessKeys()
|
| 限定符和类型 | 方法和说明 |
|---|---|
ExportedBlockKeys |
getBlockKeys()
Get the current block keys
|
BlocksWithLocations |
getBlocks(DatanodeInfo datanode,
long size)
Get a list of blocks belonged to
datanode
whose total size is equal to size |
long |
getEditLogSize()
Get the size of the current edit log (in bytes).
|
CheckpointSignature |
rollEditLog()
Closes the current edit log and opens a new one.
|
void |
rollFsImage()
Rolls the fsImage log.
|
getProtocolVersionstatic final long versionID
BlocksWithLocations getBlocks(DatanodeInfo datanode, long size) throws IOException
datanode
whose total size is equal to sizedatanode - a data nodesize - requested sizeRemoteException - if size is less than or equal to 0 or
datanode does not existIOExceptionExportedBlockKeys getBlockKeys() throws IOException
IOExceptionlong getEditLogSize()
throws IOException
IOExceptionCheckpointSignature rollEditLog() throws IOException
IOExceptionvoid rollFsImage()
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation