Package org.apache.hadoop.hbase.wal
Class FileSystemProxy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.hbase.wal.FileSystemProxy
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.conf.Configurable
Create a non-abstract "proxy" for FileSystem because FileSystem is an abstract class and not an
interface. Only interfaces can be used with the Java Proxy class to override functionality via an
InvocationHandler.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem
org.apache.hadoop.fs.FileSystem.DirectoryEntries, org.apache.hadoop.fs.FileSystem.Statistics
-
Field Summary
Fields inherited from class org.apache.hadoop.fs.FileSystem
DEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, SHUTDOWN_HOOK_PRIORITY, statistics, TRASH_PREFIX, USER_HOME_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.FSDataOutputStream
append
(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) org.apache.hadoop.fs.FSDataOutputStream
create
(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) boolean
delete
(org.apache.hadoop.fs.Path f, boolean recursive) org.apache.hadoop.fs.FileStatus
getFileStatus
(org.apache.hadoop.fs.Path f) getUri()
org.apache.hadoop.fs.Path
org.apache.hadoop.fs.FileStatus[]
listStatus
(org.apache.hadoop.fs.Path f) boolean
mkdirs
(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) org.apache.hadoop.fs.FSDataInputStream
open
(org.apache.hadoop.fs.Path p) org.apache.hadoop.fs.FSDataInputStream
open
(org.apache.hadoop.fs.Path f, int bufferSize) boolean
rename
(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) void
setWorkingDirectory
(org.apache.hadoop.fs.Path new_dir) Methods inherited from class org.apache.hadoop.fs.FileSystem
access, addDelegationTokens, append, append, appendFile, areSymlinksEnabled, cancelDeleteOnExit, canonicalizeUri, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, create, createFile, createNewFile, createNonRecursive, createNonRecursive, createNonRecursive, createSnapshot, createSnapshot, createSymlink, delete, deleteOnExit, deleteSnapshot, enableSymlinks, exists, fixRelativePart, get, get, get, getAclStatus, getAllStatistics, getAllStoragePolicies, getBlockSize, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getContentSummary, getDefaultBlockSize, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultReplication, getDefaultUri, getDelegationToken, getFileBlockLocations, getFileBlockLocations, getFileChecksum, getFileChecksum, getFileLinkStatus, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getHomeDirectory, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getQuotaUsage, getReplication, getScheme, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getStoragePolicy, getStorageStatistics, getTrashRoot, getTrashRoots, getUsed, getUsed, getXAttr, getXAttrs, getXAttrs, globStatus, globStatus, initialize, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, listStatusBatch, listStatusIterator, listXAttrs, makeQualified, mkdirs, mkdirs, modifyAclEntries, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, msync, newInstance, newInstance, newInstance, newInstanceLocal, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, removeAcl, removeAclEntries, removeDefaultAcl, removeXAttr, rename, renameSnapshot, resolveLink, resolvePath, setAcl, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setStoragePolicy, setTimes, setVerifyChecksum, setWriteChecksum, setXAttr, setXAttr, startLocalOutput, supportsSymlinks, truncate, unsetStoragePolicy
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
real
-
-
Constructor Details
-
FileSystemProxy
-
-
Method Details
-
open
- Overrides:
open
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
getUri
- Specified by:
getUri
in classorg.apache.hadoop.fs.FileSystem
-
open
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f, int bufferSize) throws IOException - Specified by:
open
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException - Specified by:
create
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
append
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) throws IOException - Specified by:
append
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
rename
public boolean rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException - Specified by:
rename
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
delete
- Specified by:
delete
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
listStatus
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f) throws FileNotFoundException, IOException - Specified by:
listStatus
in classorg.apache.hadoop.fs.FileSystem
- Throws:
FileNotFoundException
IOException
-
setWorkingDirectory
- Specified by:
setWorkingDirectory
in classorg.apache.hadoop.fs.FileSystem
-
getWorkingDirectory
- Specified by:
getWorkingDirectory
in classorg.apache.hadoop.fs.FileSystem
-
mkdirs
public boolean mkdirs(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException - Specified by:
mkdirs
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-
getFileStatus
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f) throws IOException - Specified by:
getFileStatus
in classorg.apache.hadoop.fs.FileSystem
- Throws:
IOException
-