MountTableManager, StateStoreCacheMountTableStoreImpl@Private @Evolving public abstract class MountTableStore extends CachedRecordStore<MountTable> implements MountTableManager
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 | Description |
|---|---|
MountTableStore(StateStoreDriver driver) |
| Modifier and Type | Method | Description |
|---|---|---|
RouterQuotaManager |
getQuotaManager() |
|
void |
setQuotaManager(RouterQuotaManager quotaManager) |
|
void |
setRefreshService(MountTableRefresherService refreshService) |
|
protected void |
updateCacheAllRouters() |
Update mount table cache of this router as well as all other routers.
|
getCachedRecords, getCachedRecordsAndTimeStamp, loadCache, overrideExpiredRecord, overrideExpiredRecordsgetDriver, getRecordClass, newInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMountTableEntries, addMountTableEntry, getDestination, getMountTableEntries, refreshMountTableEntries, removeMountTableEntry, updateMountTableEntrypublic MountTableStore(StateStoreDriver driver)
public void setRefreshService(MountTableRefresherService refreshService)
public void setQuotaManager(RouterQuotaManager quotaManager)
public RouterQuotaManager getQuotaManager()
protected void updateCacheAllRouters()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.