Class GlobalQuotaSettingsImpl


@Private public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings
Implementation of GlobalQuotaSettings to hide the Protobuf messages we use internally.
  • Field Details

    • throttleProto

      private final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttleProto
    • bypassGlobals

      private final Boolean bypassGlobals
    • spaceProto

      private final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceProto
  • Constructor Details

    • GlobalQuotaSettingsImpl

      protected GlobalQuotaSettingsImpl(String username, TableName tableName, String namespace, String regionServer, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
    • GlobalQuotaSettingsImpl

      protected GlobalQuotaSettingsImpl(String userName, TableName tableName, String namespace, String regionServer, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttleProto, Boolean bypassGlobals, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceProto)
  • Method Details

    • getQuotaSettings

      Description copied from class: GlobalQuotaSettings
      Computes a list of QuotaSettings that present the complete quota state of the combination of this user, table, and/or namespace. Beware in calling this method repeatedly as the implementation of it may be costly.
      Specified by:
      getQuotaSettings in class GlobalQuotaSettings
    • getThrottleProto

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getThrottleProto()
    • getBypassGlobals

    • getSpaceProto

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota getSpaceProto()
    • toQuotas

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas toQuotas()
      Constructs a new QuotaProtos.Quotas message from this.
    • hasThrottle

      private boolean hasThrottle(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType quotaType, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder throttleBuilder)
    • merge

      Description copied from class: QuotaSettings
      Merges the provided settings with this and returns a new settings object to the caller if the merged settings differ from the original.
      Specified by:
      merge in class QuotaSettings
      Parameters:
      other - The new settings to merge in.
      Returns:
      The merged QuotaSettings object or null if the quota should be deleted.
      Throws:
      IOException
    • validateTimedQuota

      private void validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • buildThrottleQuotas

      private Map<ThrottleType,org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota> buildThrottleQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle proto)