Uses of Annotation Interface
org.apache.hadoop.hdfs.server.namenode.ha.ReadOnly
Packages that use ReadOnly
Package
Description
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
Uses of ReadOnly in org.apache.hadoop.hdfs.protocol
Methods in org.apache.hadoop.hdfs.protocol with annotations of type ReadOnlyModifier and TypeMethodDescriptionvoidClientProtocol.checkAccess(String path, org.apache.hadoop.fs.permission.FsAction mode) Checks if the user can access a path.org.apache.hadoop.fs.permission.AclStatusClientProtocol.getAclStatus(String src) Gets the ACLs of files and directories.ClientProtocol.getBatchedListing(String[] srcs, byte[] startAfter, boolean needLocation) Get a partial listing of the input directoriesClientProtocol.getBlockLocations(String src, long offset, long length) Get locations of the blocks of the specified file within the specified range.org.apache.hadoop.fs.ContentSummaryClientProtocol.getContentSummary(String path) GetContentSummaryrooted at the specified directory.longClientProtocol.getCurrentEditLogTxid()Get the highest txid the NameNode knows has been written to the edit log, or -1 if the NameNode's edit log is not yet open for write.ClientProtocol.getDataEncryptionKey()ClientProtocol.getDatanodeReport(HdfsConstants.DatanodeReportType type) Get a report on the system's current datanodes.ClientProtocol.getDatanodeStorageReport(HdfsConstants.DatanodeReportType type) Get a report on the current datanode storages.ClientProtocol.getECBlockGroupStats()Get statistics pertaining to blocks of typeBlockType.STRIPEDin the filesystem.ClientProtocol.getECTopologyResultForPolicies(String... policyNames) Verifies if the given policies are supported in the given cluster setup.ClientProtocol.getEditsFromTxid(long txid) Get an ordered list of batches of events corresponding to the edit log transactions for txids equal to or greater than txid.org.apache.hadoop.fs.PathClientProtocol.getEnclosingRoot(String src) Get the enclosing root for a path.ClientProtocol.getErasureCodingCodecs()Get the erasure coding codecs loaded in Namenode.ClientProtocol.getErasureCodingPolicies()Get the erasure coding policies loaded in Namenode, excluding REPLICATION policy.ClientProtocol.getErasureCodingPolicy(String src) Get the information about the EC policy for the path.ClientProtocol.getEZForPath(String src) Get the encryption zone for a path.ClientProtocol.getFileInfo(String src) Get the file info for a specific file or directory.ClientProtocol.getFileLinkInfo(String src) Get the file info for a specific file or directory.org.apache.hadoop.ha.HAServiceProtocol.HAServiceStateClientProtocol.getHAServiceState()Get HA service state of the server.ClientProtocol.getLinkTarget(String path) Return the target of the given symlink.ClientProtocol.getListing(String src, byte[] startAfter, boolean needLocation) Get a partial listing of the indicated directory.ClientProtocol.getLocatedFileInfo(String src, boolean needBlockToken) Get the file info for a specific file or directory withLocatedBlocks.longClientProtocol.getPreferredBlockSize(String filename) Get the block size for the given file.org.apache.hadoop.fs.QuotaUsageClientProtocol.getQuotaUsage(String path) GetQuotaUsagerooted at the specified directory.ClientProtocol.getReplicatedBlockStats()Get statistics pertaining to blocks of typeBlockType.CONTIGUOUSin the filesystem.org.apache.hadoop.fs.FsServerDefaultsClientProtocol.getServerDefaults()Get server default values for a number of configuration params.ClientProtocol.getSlowDatanodeReport()Get report on all of the slow Datanodes.ClientProtocol.getSnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot) Get the difference between two snapshots, or between a snapshot and the current tree of a directory.ClientProtocol.getSnapshotDiffReportListing(String snapshotRoot, String fromSnapshot, String toSnapshot, byte[] startPath, int index) Get the difference between two snapshots of a directory iteratively.ClientProtocol.getSnapshotListing(String snapshotRoot) Get listing of all the snapshots for a snapshottable directory.ClientProtocol.getSnapshottableDirListing()Get the list of snapshottable directories that are owned by the current user.long[]ClientProtocol.getStats()Get an array of aggregated statistics combining blocks of both typeBlockType.CONTIGUOUSandBlockType.STRIPEDin the filesystem.ClientProtocol.getStoragePolicies()Get all the available block storage policies.ClientProtocol.getStoragePolicy(String path) Get the storage policy for a file/directory.Get xattrs of a file or directory.booleanClientProtocol.isFileClosed(String src) Get the close status of a file.org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<CacheDirectiveEntry>ClientProtocol.listCacheDirectives(long prevId, CacheDirectiveInfo filter) List the set of cached paths of a cache pool.org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<CachePoolEntry>ClientProtocol.listCachePools(String prevPool) List the set of cache pools.ClientProtocol.listCorruptFileBlocks(String path, String cookie) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<EncryptionZone>ClientProtocol.listEncryptionZones(long prevId) Used to implement cursor-based batched listing ofEncryptionZones.org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<OpenFileEntry>ClientProtocol.listOpenFiles(long prevId) Deprecated.org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<OpenFileEntry>ClientProtocol.listOpenFiles(long prevId, EnumSet<OpenFilesIterator.OpenFilesType> openFilesTypes, String path) List open files in the system in batches.org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<ZoneReencryptionStatus>ClientProtocol.listReencryptionStatus(long prevId) Used to implement cursor-based batched listing ofZoneReencryptionStatuss.ClientProtocol.listXAttrs(String src) List the xattrs names for a file or directory.voidClientProtocol.msync()Called by client to wait until the server has reached the state id of the client.