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.
|
getProtocolVersion
static final long versionID
BlocksWithLocations getBlocks(DatanodeInfo datanode, long size) throws IOException
datanode
whose total size is equal to size
datanode
- a data nodesize
- requested sizeRemoteException
- if size is less than or equal to 0 or
datanode does not existIOException
ExportedBlockKeys getBlockKeys() throws IOException
IOException
long getEditLogSize() throws IOException
IOException
CheckpointSignature rollEditLog() throws IOException
IOException
void rollFsImage() throws IOException
IOException
Copyright © 2009 The Apache Software Foundation