Package org.apache.hadoop.hbase.util
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,org.apache.hadoop.fs.BatchListingOperations,org.apache.hadoop.fs.BulkDeleteSource,org.apache.hadoop.fs.LeaseRecoverable,org.apache.hadoop.fs.PathCapabilities,org.apache.hadoop.fs.SafeMode,org.apache.hadoop.fs.WithErasureCoding,org.apache.hadoop.security.token.DelegationTokenIssuer
- 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.HdfsDataOutputStreamBuilderNested 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_PREFIXFields inherited from interface org.apache.hadoop.security.token.DelegationTokenIssuer
TOKEN_LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFileClosed(org.apache.hadoop.fs.Path f) Close status of a file.Methods inherited from class org.apache.hadoop.hdfs.DistributedFileSystem
access, addCacheDirective, addCacheDirective, addCachePool, addErasureCodingPolicies, allowSnapshot, append, append, append, append, appendFile, batchedListLocatedStatusIterator, batchedListStatusIterator, canonicalizeUri, close, concat, create, create, create, createEncryptionZone, createFile, createMultipartUploader, createNonRecursive, createPathHandle, createSnapshot, createSymlink, delete, deleteSnapshot, disableErasureCodingPolicy, disallowSnapshot, enableErasureCodingPolicy, finalizeUpgrade, fixRelativePart, getAclStatus, getAdditionalTokenIssuers, getAllErasureCodingCodecs, getAllErasureCodingPolicies, getAllStoragePolicies, getBytesWithFutureGenerationStamps, getCanonicalServiceName, getClient, getContentSummary, getCorruptBlocksCount, getDataNodeStats, getDataNodeStats, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDelegationToken, getECTopologyResultForPolicies, getEnclosingRoot, getErasureCodingPolicy, getErasureCodingPolicyName, getEZForPath, getFileBlockLocations, getFileBlockLocations, getFileChecksum, getFileChecksum, getFileEncryptionInfo, getFileLinkStatus, getFileStatus, getHedgedReadMetrics, getHomeDirectory, getInotifyEventStream, getInotifyEventStream, getKeyProvider, getKeyProviderUri, getLinkTarget, getLocatedBlocks, getLowRedundancyBlocksCount, getMissingBlocksCount, getMissingReplOneBlocksCount, getPendingDeletionBlocksCount, getQuotaUsage, getScheme, getServerDefaults, getSlowDatanodeStats, getSnapshotDiffReport, getSnapshotDiffReportListing, getSnapshotListing, getSnapshottableDirListing, getStatus, getStoragePolicies, getStoragePolicy, getTrashRoot, getTrashRoots, getUri, getWorkingDirectory, getXAttr, getXAttrs, getXAttrs, hasPathCapability, initialize, isInSafeMode, isSnapshotTrashRootEnabled, listCacheDirectives, listCachePools, listCorruptFileBlocks, listEncryptionZones, listLocatedStatus, listOpenFiles, listOpenFiles, listOpenFiles, listReencryptionStatus, listStatus, listStatusIterator, listXAttrs, metaSave, mkdir, mkdirs, modifyAclEntries, modifyCacheDirective, modifyCacheDirective, modifyCachePool, msync, open, open, primitiveCreate, primitiveMkdir, provisionEZTrash, provisionSnapshotTrash, recoverLease, reencryptEncryptionZone, refreshNodes, removeAcl, removeAclEntries, removeCacheDirective, removeCachePool, removeDefaultAcl, removeErasureCodingPolicy, removeXAttr, rename, rename, renameSnapshot, resolveLink, restoreFailedStorage, rollEdits, rollingUpgrade, satisfyStoragePolicy, saveNamespace, saveNamespace, setAcl, setBalancerBandwidth, setErasureCodingPolicy, setOwner, setPermission, setQuota, setQuotaByStorageType, setReplication, setSafeMode, setSafeMode, setSafeMode, setSafeMode, setStoragePolicy, setTimes, setVerifyChecksum, setWorkingDirectory, setXAttr, snapshotDiffReportListingRemoteIterator, supportsSymlinks, toString, truncate, unsetErasureCodingPolicy, unsetStoragePolicy, upgradeStatusMethods inherited from class org.apache.hadoop.fs.FileSystem
append, 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, createBulkDelete, createDataInputStreamBuilder, createDataInputStreamBuilder, createDataOutputStreamBuilder, 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, getPathHandle, 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, open, openFile, openFile, openFileWithOptions, openFileWithOptions, primitiveMkdir, printStatistics, processDeleteOnExit, resolvePath, setDefaultUri, setDefaultUri, setWriteChecksum, setXAttr, startLocalOutputMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.security.token.DelegationTokenIssuer
addDelegationTokens
-
Constructor Details
-
IsFileClosedDistributedFileSystem
private IsFileClosedDistributedFileSystem()
-
-
Method Details
-
isFileClosed
Close status of a file. Copied over from HDFS-4525- Specified by:
isFileClosedin interfaceorg.apache.hadoop.fs.LeaseRecoverable- Overrides:
isFileClosedin classorg.apache.hadoop.hdfs.DistributedFileSystem- Returns:
- true if file is already closed
- Throws:
IOException
-