public class RouterQuotaManager
extends java.lang.Object
RouterQuotaUsage cache of mount tables and do management
for the quota caches.| Constructor | Description |
|---|---|
RouterQuotaManager() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clean up the cache.
|
java.util.Set<java.lang.String> |
getAll() |
Get all the mount quota paths.
|
java.util.Set<java.lang.String> |
getPaths(java.lang.String parentPath) |
Get children paths (can include itself) under specified federation path.
|
RouterQuotaUsage |
getQuotaUsage(java.lang.String path) |
Get the nearest ancestor's quota usage, and meanwhile its quota was set.
|
static boolean |
isQuotaSet(org.apache.hadoop.fs.QuotaUsage quota) |
Check if the quota was set.
|
void |
put(java.lang.String path,
RouterQuotaUsage quotaUsage) |
Put new entity into cache.
|
void |
remove(java.lang.String path) |
Remove the entity from cache.
|
void |
updateQuota(java.lang.String path,
RouterQuotaUsage quota) |
Update quota in cache.
|
public java.util.Set<java.lang.String> getAll()
public RouterQuotaUsage getQuotaUsage(java.lang.String path)
path - The path being written.public java.util.Set<java.lang.String> getPaths(java.lang.String parentPath)
parentPath - Federated path.public void put(java.lang.String path,
RouterQuotaUsage quotaUsage)
path - Mount table path.quotaUsage - Corresponding cache value.public void updateQuota(java.lang.String path,
RouterQuotaUsage quota)
path - Mount table path.quota - Corresponding quota value.public void remove(java.lang.String path)
path - Mount table path.public void clear()
public static boolean isQuotaSet(org.apache.hadoop.fs.QuotaUsage quota)
quota - the quota usage.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.