Class AsyncQuota
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.Quota
org.apache.hadoop.hdfs.server.federation.router.async.AsyncQuota
Provides asynchronous operations for managing quotas in HDFS Federation.
This class extends
Quota
and overrides its methods to perform quota operations in a non-blocking manner,
allowing for concurrent execution and improved performance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<RemoteLocation,org.apache.hadoop.fs.QuotaUsage> getEachQuotaUsage(String path) Get quota usage for the federation path.org.apache.hadoop.fs.QuotaUsagegetQuotaUsage(String path) Async get aggregated quota usage for the federation path.Methods inherited from class org.apache.hadoop.hdfs.server.federation.router.Quota
aggregateQuota, andByStorageType, eachByStorageType, getValidQuotaLocations, orByStorageType, setQuota
-
Constructor Details
-
AsyncQuota
-
-
Method Details
-
getQuotaUsage
Async get aggregated quota usage for the federation path.- Overrides:
getQuotaUsagein classQuota- Parameters:
path- Federation path.- Returns:
- Aggregated quota.
- Throws:
IOException- If the quota system is disabled.
-
getEachQuotaUsage
protected Map<RemoteLocation,org.apache.hadoop.fs.QuotaUsage> getEachQuotaUsage(String path) throws IOException Get quota usage for the federation path.- Overrides:
getEachQuotaUsagein classQuota- Parameters:
path- Federation path.- Returns:
- quota usage for each remote location.
- Throws:
IOException- If the quota system is disabled.
-