public class FSDirectory extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown the filestore
|
void |
concat(String target,
String[] srcs)
Concat all the blocks from srcs to trg and delete the srcs files
|
int |
getReadHoldCount() |
int |
getWriteHoldCount() |
void |
replaceNode(String path,
INodeFile oldnode,
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 <T extends INode> |
verifyFsLimits(INode[] pathComponents,
int pos,
T child)
Verify that filesystem limit constraints are not violated
|
public int getReadHoldCount()
public int getWriteHoldCount()
protected void setReady(boolean flag)
public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void concat(String target, String[] srcs) throws org.apache.hadoop.fs.UnresolvedLinkException
org.apache.hadoop.fs.UnresolvedLinkExceptionpublic 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.UnresolvedLinkExceptionpublic void replaceNode(String path, INodeFile oldnode, INodeFile newnode) throws IOException, org.apache.hadoop.fs.UnresolvedLinkException
IOExceptionorg.apache.hadoop.fs.UnresolvedLinkExceptionprotected <T extends INode> void verifyFsLimits(INode[] pathComponents, int pos, T child) throws org.apache.hadoop.hdfs.protocol.FSLimitException
FSLimitException.PathComponentTooLongException - child's name is too longFSLimitException.MaxDirectoryItemsExceededException - items per directory is exceededorg.apache.hadoop.hdfs.protocol.FSLimitExceptionCopyright © 2013 Apache Software Foundation. All Rights Reserved.