Class TestRecoverLeaseFSUtils.IsFileClosedDistributedFileSystem

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.hdfs.DistributedFileSystem
org.apache.hadoop.hbase.util.TestRecoverLeaseFSUtils.IsFileClosedDistributedFileSystem
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.conf.Configurable, org.apache.hadoop.crypto.key.KeyProviderTokenIssuer
Enclosing class:
TestRecoverLeaseFSUtils

private static class TestRecoverLeaseFSUtils.IsFileClosedDistributedFileSystem extends org.apache.hadoop.hdfs.DistributedFileSystem
Version of DFS that has HDFS-4525 in it.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.DistributedFileSystem

    org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus, org.apache.hadoop.hdfs.DistributedFileSystem.HdfsDataOutputStreamBuilder

    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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isFileClosed(org.apache.hadoop.fs.Path f)
    Close status of a file.

    Methods inherited from class org.apache.hadoop.hdfs.DistributedFileSystem

    access, addCacheDirective, addCacheDirective, addCachePool, addDelegationTokens, allowSnapshot, append, append, append, appendFile, canonicalizeUri, close, concat, create, create, create, createEncryptionZone, createFile, createNonRecursive, createSnapshot, createSymlink, delete, deleteSnapshot, disallowSnapshot, finalizeUpgrade, fixRelativePart, getAclStatus, getAllStoragePolicies, getBytesWithFutureGenerationStamps, getCanonicalServiceName, getClient, getContentSummary, getCorruptBlocksCount, getDataNodeStats, getDataNodeStats, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDelegationToken, getDiskStatus, getEZForPath, getFileBlockLocations, getFileBlockLocations, getFileBlockStorageLocations, getFileChecksum, getFileChecksum, getFileEncryptionInfo, getFileLinkStatus, getFileStatus, getHomeDirectory, getInotifyEventStream, getInotifyEventStream, getKeyProvider, getKeyProviderUri, getLinkTarget, getMissingBlocksCount, getMissingReplOneBlocksCount, getPendingDeletionBlocksCount, getQuotaUsage, getRawCapacity, getRawUsed, getScheme, getServerDefaults, getSnapshotDiffReport, getSnapshottableDirListing, getStatus, getStoragePolicies, getStoragePolicy, getTrashRoot, getTrashRoots, getUnderReplicatedBlocksCount, getUri, getWorkingDirectory, getXAttr, getXAttrs, getXAttrs, initialize, isInSafeMode, listCacheDirectives, listCachePools, listCorruptFileBlocks, listEncryptionZones, listLocatedStatus, listOpenFiles, listStatus, listStatusIterator, listXAttrs, metaSave, mkdir, mkdirs, modifyAclEntries, modifyCacheDirective, modifyCacheDirective, modifyCachePool, msync, open, primitiveCreate, primitiveMkdir, provisionEZTrash, recoverLease, refreshNodes, removeAcl, removeAclEntries, removeCacheDirective, removeCachePool, removeDefaultAcl, removeXAttr, rename, rename, renameSnapshot, resolveLink, restoreFailedStorage, rollEdits, rollingUpgrade, saveNamespace, setAcl, setBalancerBandwidth, setOwner, setPermission, setQuota, setQuotaByStorageType, setReplication, setSafeMode, setSafeMode, setStoragePolicy, setTimes, setVerifyChecksum, setWorkingDirectory, setXAttr, supportsSymlinks, toString, truncate, unsetStoragePolicy

    Methods inherited from class org.apache.hadoop.fs.FileSystem

    append, append, areSymlinksEnabled, cancelDeleteOnExit, checkPath, clearStatistics, closeAll, closeAllForUGI, completeLocalOutput, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, createSnapshot, delete, deleteOnExit, enableSymlinks, exists, get, get, get, getAllStatistics, getBlockSize, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultReplication, getDefaultUri, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getInitialWorkingDirectory, getLength, getLocal, getName, getNamed, getReplication, getServerDefaults, getStatistics, getStatistics, getStatus, getStorageStatistics, getUsed, getUsed, globStatus, globStatus, isDirectory, isFile, listFiles, listLocatedStatus, listStatus, listStatus, listStatus, listStatusBatch, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveMkdir, printStatistics, processDeleteOnExit, resolvePath, setDefaultUri, setDefaultUri, setWriteChecksum, setXAttr, startLocalOutput

    Methods inherited from class org.apache.hadoop.conf.Configured

    getConf, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • isFileClosed

      public boolean isFileClosed(org.apache.hadoop.fs.Path f) throws IOException
      Close status of a file. Copied over from HDFS-4525
      Overrides:
      isFileClosed in class org.apache.hadoop.hdfs.DistributedFileSystem
      Returns:
      true if file is already closed
      Throws:
      IOException