程序包 | 说明 |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.security.token.block | |
org.apache.hadoop.hdfs.server.datanode | |
org.apache.hadoop.hdfs.server.namenode |
限定符和类型 | 方法和说明 |
---|---|
static BlockReader |
DFSClient.RemoteBlockReader.newBlockReader(Socket sock,
String file,
long blockId,
Token<BlockTokenIdentifier> accessToken,
long genStamp,
long startOffset,
long len,
int bufferSize) |
static BlockReader |
DFSClient.RemoteBlockReader.newBlockReader(Socket sock,
String file,
long blockId,
Token<BlockTokenIdentifier> accessToken,
long genStamp,
long startOffset,
long len,
int bufferSize,
boolean verifyChecksum)
Creates a new
BlockReader for the given blockId. |
static BlockReader |
DFSClient.RemoteBlockReader.newBlockReader(Socket sock,
String file,
long blockId,
Token<BlockTokenIdentifier> accessToken,
long genStamp,
long startOffset,
long len,
int bufferSize,
boolean verifyChecksum,
String clientName) |
限定符和类型 | 方法和说明 |
---|---|
Token<BlockTokenIdentifier> |
LocatedBlock.getBlockToken() |
限定符和类型 | 方法和说明 |
---|---|
BlockLocalPathInfo |
ClientDatanodeProtocol.getBlockLocalPathInfo(Block block,
Token<BlockTokenIdentifier> token)
Retrieves the path names of the block file and metadata file stored on the
local file system.
|
void |
LocatedBlock.setBlockToken(Token<BlockTokenIdentifier> token) |
限定符和类型 | 字段和说明 |
---|---|
static Token<BlockTokenIdentifier> |
BlockTokenSecretManager.DUMMY_TOKEN |
限定符和类型 | 方法和说明 |
---|---|
BlockTokenIdentifier |
BlockTokenSecretManager.createIdentifier()
Create an empty block token identifier
|
限定符和类型 | 方法和说明 |
---|---|
Token<BlockTokenIdentifier> |
BlockTokenSecretManager.generateToken(Block block,
EnumSet<BlockTokenSecretManager.AccessMode> modes)
Generate an block token for current user
|
Token<BlockTokenIdentifier> |
BlockTokenSecretManager.generateToken(long[] blockIds,
EnumSet<BlockTokenSecretManager.AccessMode> modes)
Generate a block token for the current user based on a collection
of blockIds
|
Token<BlockTokenIdentifier> |
BlockTokenSecretManager.generateToken(String userId,
Block block,
EnumSet<BlockTokenSecretManager.AccessMode> modes)
Generate a block token for a specified user
|
Token<BlockTokenIdentifier> |
BlockTokenSecretManager.generateToken(String userID,
long[] blockIds,
EnumSet<BlockTokenSecretManager.AccessMode> modes)
Generate a block token based on a collection of blockIds
|
Token<BlockTokenIdentifier> |
BlockTokenSelector.selectToken(Text service,
Collection<Token<? extends TokenIdentifier>> tokens) |
限定符和类型 | 方法和说明 |
---|---|
void |
BlockTokenSecretManager.checkAccess(BlockTokenIdentifier id,
String userId,
Block block,
BlockTokenSecretManager.AccessMode mode)
Check if access should be allowed. userID is not checked if null.
|
protected byte[] |
BlockTokenSecretManager.createPassword(BlockTokenIdentifier identifier)
Create a new password/secret for the given block token identifier.
|
byte[] |
BlockTokenSecretManager.retrievePassword(BlockTokenIdentifier identifier)
Look up the token password/secret for the given block token identifier.
|
限定符和类型 | 方法和说明 |
---|---|
void |
BlockTokenSecretManager.checkAccess(Token<BlockTokenIdentifier> token,
String userId,
Block block,
BlockTokenSecretManager.AccessMode mode)
Check if access should be allowed. userID is not checked if null
|
限定符和类型 | 方法和说明 |
---|---|
BlockLocalPathInfo |
DataNode.getBlockLocalPathInfo(Block block,
Token<BlockTokenIdentifier> token) |
限定符和类型 | 方法和说明 |
---|---|
void |
JspHelper.streamBlockInAscii(InetSocketAddress addr,
long blockId,
Token<BlockTokenIdentifier> accessToken,
long genStamp,
long blockSize,
long offsetIntoBlock,
long chunkSizeToView,
javax.servlet.jsp.JspWriter out,
Configuration conf) |
Copyright © 2009 The Apache Software Foundation