public class FSDirectory extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static byte[] |
DOT_INODES |
static String |
DOT_INODES_STRING |
static byte[] |
DOT_RESERVED |
static String |
DOT_RESERVED_PATH_PREFIX |
static String |
DOT_RESERVED_STRING |
Modifier and Type | Method and Description |
---|---|
void |
addToInodeMap(INode inode)
This method is always called with writeLock of FSDirectory held.
|
void |
close()
Shutdown the filestore
|
INode |
getInode(long id)
Get the inode from inodeMap based on its inode id.
|
INode |
getINode(String src)
Get
INode associated with the file / directory. |
INode |
getINode4Write(String src)
Get
INode associated with the file / directory. |
INodeMap |
getINodeMap() |
INodesInPath |
getINodesInPath4Write(String src)
Get
INode associated with the file / directory. |
INodesInPath |
getLastINodeInPath(String src)
Get
INode associated with the file / directory. |
INodeDirectoryWithQuota |
getRoot() |
static boolean |
isReservedName(INode inode)
Check if a given inode name is reserved
|
static boolean |
isReservedName(String src)
Check if a given path is reserved
|
void |
removeFromInodeMap(List<? extends INode> inodes)
This method is always called with writeLock of FSDirectory held.
|
protected void |
setReady(boolean flag) |
public static final String DOT_RESERVED_STRING
public static final String DOT_RESERVED_PATH_PREFIX
public static final byte[] DOT_RESERVED
public static final String DOT_INODES_STRING
public static final byte[] DOT_INODES
public INodeDirectoryWithQuota getRoot()
protected void setReady(boolean flag)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public INode getINode(String src) throws UnresolvedLinkException
INode
associated with the file / directory.UnresolvedLinkException
public INodesInPath getLastINodeInPath(String src) throws UnresolvedLinkException
INode
associated with the file / directory.UnresolvedLinkException
public INodesInPath getINodesInPath4Write(String src) throws UnresolvedLinkException, SnapshotAccessControlException
INode
associated with the file / directory.public INode getINode4Write(String src) throws UnresolvedLinkException, SnapshotAccessControlException
INode
associated with the file / directory.SnapshotAccessControlException
- if path is in RO snapshotUnresolvedLinkException
public INodeMap getINodeMap()
public final void addToInodeMap(INode inode)
public final void removeFromInodeMap(List<? extends INode> inodes)
public INode getInode(long id)
id
- The given idpublic static boolean isReservedName(INode inode)
public static boolean isReservedName(String src)
Copyright © 2013 Apache Software Foundation. All rights reserved.