|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.FSDirectory
public class FSDirectory
FSDirectory stores the filesystem directory state. It handles writing/loading values to disk, and logging changes as we go. It keeps the filename->blockset mapping always-current and logged to disk.
| Method Summary | ||
|---|---|---|
void |
close()
Shutdown the filestore |
|
void |
concat(String target,
String[] srcs)
Concat all the blocks from srcs to trg and delete the srcs files |
|
void |
replaceNode(String path,
org.apache.hadoop.hdfs.server.namenode.INodeFile oldnode,
org.apache.hadoop.hdfs.server.namenode.INodeFile newnode)
Replaces the specified inode with the specified one. |
|
protected void |
setReady(boolean flag)
|
|
void |
unprotectedConcat(String target,
String[] srcs,
long timestamp)
Concat all the blocks from srcs to trg and delete the srcs files |
|
protected
|
verifyFsLimits(org.apache.hadoop.hdfs.server.namenode.INode[] pathComponents,
int pos,
T child)
Verify that filesystem limit constraints are not violated |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void setReady(boolean flag)
public void close()
throws IOException
close in interface CloseableIOException
public void concat(String target,
String[] srcs)
throws org.apache.hadoop.fs.UnresolvedLinkException
org.apache.hadoop.fs.UnresolvedLinkException
public void unprotectedConcat(String target,
String[] srcs,
long timestamp)
throws org.apache.hadoop.fs.UnresolvedLinkException
target - target file to move the blocks tosrcs - list of file to move the blocks from
Must be public because also called from EditLogs
NOTE: - it does not update quota (not needed for concat)
org.apache.hadoop.fs.UnresolvedLinkException
public void replaceNode(String path,
org.apache.hadoop.hdfs.server.namenode.INodeFile oldnode,
org.apache.hadoop.hdfs.server.namenode.INodeFile newnode)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
IOException
org.apache.hadoop.fs.UnresolvedLinkException
protected <T extends org.apache.hadoop.hdfs.server.namenode.INode> void verifyFsLimits(org.apache.hadoop.hdfs.server.namenode.INode[] pathComponents,
int pos,
T child)
throws org.apache.hadoop.hdfs.protocol.FSLimitException
FSLimitException.PathComponentTooLongException - child's name is too long
FSLimitException.MaxDirectoryItemsExceededException - items per directory is exceeded
org.apache.hadoop.hdfs.protocol.FSLimitException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||