Class MountTableStore
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.RecordStore<R>
org.apache.hadoop.hdfs.server.federation.store.CachedRecordStore<MountTable>
org.apache.hadoop.hdfs.server.federation.store.MountTableStore
- All Implemented Interfaces:
MountTableManager,StateStoreCache
- Direct Known Subclasses:
MountTableStoreImpl
@Private
@Evolving
public abstract class MountTableStore
extends CachedRecordStore<MountTable>
implements MountTableManager
Management API for the HDFS mount table information stored in
MountTable records. The mount table contains entries that map a particular
global namespace path one or more HDFS nameservices (NN) + target path. It is
possible to map mount locations for root folders, directories or individual
files.
Once fetched from the
StateStoreDriver, MountTable records are cached in a tree for faster access.
Each path in the global namespace is mapped to a nameserivce ID and local
path upon request. The cache is periodically updated by the @{link
StateStoreCacheUpdateService}.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetQuotaManager(RouterQuotaManager quotaManager) voidsetRefreshService(MountTableRefresherService refreshService) protected voidUpdate mount table cache of this router as well as all other routers.Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.CachedRecordStore
getCachedRecords, getCachedRecordsAndTimeStamp, loadCache, overrideExpiredRecord, overrideExpiredRecordsMethods inherited from class org.apache.hadoop.hdfs.server.federation.store.RecordStore
getDriver, getRecordClass, newInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hdfs.server.federation.resolver.MountTableManager
addMountTableEntries, addMountTableEntry, getDestination, getMountTableEntries, refreshMountTableEntries, removeMountTableEntry, updateMountTableEntry
-
Constructor Details
-
MountTableStore
-
-
Method Details
-
setRefreshService
-
setQuotaManager
-
getQuotaManager
-
updateCacheAllRouters
protected void updateCacheAllRouters()Update mount table cache of this router as well as all other routers.
-