public class FSEditLog extends Object
限定符和类型 | 字段和说明 |
---|---|
static org.apache.commons.logging.Log |
LOG |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Shutdown the file store.
|
void |
createEditLogFile(File name) |
void |
logCloseFile(String path,
org.apache.hadoop.hdfs.server.namenode.INodeFile newNode)
Add close lease record to edit log.
|
void |
logMkDir(String path,
org.apache.hadoop.hdfs.server.namenode.INode newNode)
Add create directory record to edit log
|
void |
logOpenFile(String path,
org.apache.hadoop.hdfs.server.namenode.INodeFileUnderConstruction newNode)
Add open lease record to edit log.
|
void |
logSync() |
void |
open()
Create empty edit log files.
|
public void open() throws IOException
IOException
public void createEditLogFile(File name) throws IOException
IOException
public void close() throws IOException
IOException
public void logSync() throws IOException
IOException
public void logOpenFile(String path, org.apache.hadoop.hdfs.server.namenode.INodeFileUnderConstruction newNode) throws IOException
IOException
public void logCloseFile(String path, org.apache.hadoop.hdfs.server.namenode.INodeFile newNode)
public void logMkDir(String path, org.apache.hadoop.hdfs.server.namenode.INode newNode)
Copyright © 2009 The Apache Software Foundation