public interface ClientDatanodeProtocol extends VersionedProtocol
限定符和类型 | 字段和说明 |
---|---|
static org.apache.commons.logging.Log |
LOG |
static long |
versionID
4: never return null and always return a newly generated access token
|
限定符和类型 | 方法和说明 |
---|---|
Block |
getBlockInfo(Block block)
Returns a block object that contains the specified block object
from the specified Datanode.
|
BlockLocalPathInfo |
getBlockLocalPathInfo(Block block,
Token<BlockTokenIdentifier> token)
Retrieves the path names of the block file and metadata file stored on the
local file system.
|
LocatedBlock |
recoverBlock(Block block,
boolean keepLength,
DatanodeInfo[] targets)
Start generation-stamp recovery for specified block
|
getProtocolVersion
static final org.apache.commons.logging.Log LOG
static final long versionID
LocatedBlock recoverBlock(Block block, boolean keepLength, DatanodeInfo[] targets) throws IOException
block
- the specified blockkeepLength
- keep the block lengthtargets
- the list of possible locations of specified blockIOException
Block getBlockInfo(Block block) throws IOException
block
- the specified blockIOException
- if the block does not existBlockLocalPathInfo getBlockLocalPathInfo(Block block, Token<BlockTokenIdentifier> token) throws IOException
block
- the specified block on the local datanodetoken
- the block access token.IOException
- on errorCopyright © 2009 The Apache Software Foundation