java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.Quota
org.apache.hadoop.hdfs.server.federation.router.async.AsyncQuota

public class AsyncQuota extends Quota
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 Details

  • Method Details

    • getQuotaUsage

      public org.apache.hadoop.fs.QuotaUsage getQuotaUsage(String path) throws IOException
      Async get aggregated quota usage for the federation path.
      Overrides:
      getQuotaUsage in class Quota
      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:
      getEachQuotaUsage in class Quota
      Parameters:
      path - Federation path.
      Returns:
      quota usage for each remote location.
      Throws:
      IOException - If the quota system is disabled.