程序包 | 说明 |
---|---|
org.apache.hadoop.hdfs.server.namenode |
限定符和类型 | 方法和说明 |
---|---|
DatanodeDescriptor |
BlockPlacementPolicyDefault.chooseReplicaToDelete(FSInodeInfo inode,
Block block,
short replicationFactor,
Collection<DatanodeDescriptor> first,
Collection<DatanodeDescriptor> second)
Decide whether deleting the specified replica of the block still makes
the block conform to the configured block placement policy.
|
abstract DatanodeDescriptor |
BlockPlacementPolicy.chooseReplicaToDelete(FSInodeInfo srcInode,
Block block,
short replicationFactor,
Collection<DatanodeDescriptor> existingReplicas,
Collection<DatanodeDescriptor> moreExistingReplicas)
Decide whether deleting the specified replica of the block still makes
the block conform to the configured block placement policy.
|
DatanodeDescriptor[] |
BlockPlacementPolicyDefault.chooseTarget(FSInodeInfo srcInode,
int numOfReplicas,
DatanodeDescriptor writer,
List<DatanodeDescriptor> chosenNodes,
long blocksize)
choose numOfReplicas data nodes for writer
If not, return as many as we can.
|
Copyright © 2009 The Apache Software Foundation