org.apache.hadoop.hdfs.server.namenode
Class BlockManager
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.BlockManager
@InterfaceAudience.Private
public class BlockManager
- extends Object
Keeps information related to the blocks stored in the Hadoop cluster.
This class is a helper class for FSNamesystem
and requires several
methods to be called with lock held on FSNamesystem
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INITIAL_MAP_CAPACITY
public static final int DEFAULT_INITIAL_MAP_CAPACITY
- See Also:
- Constant Field Values
DEFAULT_MAP_LOAD_FACTOR
public static final float DEFAULT_MAP_LOAD_FACTOR
- See Also:
- Constant Field Values
DEFAULT_MAX_CORRUPT_FILES_RETURNED
public static final int DEFAULT_MAX_CORRUPT_FILES_RETURNED
- See Also:
- Constant Field Values
processReport
public void processReport(DatanodeDescriptor node,
BlockListAsLongs report)
throws IOException
- The given node is reporting all its blocks. Use this info to
update the (machine-->blocklist) and (block-->machinelist) tables.
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation