org.apache.hadoop.hdfs.server.namenode
Class BlockManager

java.lang.Object
  extended by 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.


Field Summary
static int DEFAULT_INITIAL_MAP_CAPACITY
           
static float DEFAULT_MAP_LOAD_FACTOR
           
static int DEFAULT_MAX_CORRUPT_FILES_RETURNED
           
 
Method Summary
 void processReport(DatanodeDescriptor node, BlockListAsLongs report)
          The given node is reporting all its blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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