Class QuotaState

java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaState
Direct Known Subclasses:
UserQuotaState

@Private @Evolving public class QuotaState extends Object
In-Memory state of table or namespace quotas
  • Field Details

  • Constructor Details

  • Method Details

    • getLastUpdate

      public long getLastUpdate()
    • getLastQuery

      public long getLastQuery()
    • toString

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

      public boolean isBypass()
      Returns true if there is no quota information associated to this object
    • setQuotas

      public void setQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
      Setup the global quota information. (This operation is part of the QuotaState setup)
    • update

      public void update(QuotaState other)
      Perform an update of the quota info based on the other quota info object. (This operation is executed by the QuotaCache)
    • getGlobalLimiter

      Return the limiter associated with this quota.
      Returns:
      the quota limiter
    • getGlobalLimiterWithoutUpdatingLastQuery

      Return the limiter associated with this quota without updating internal last query stats
      Returns:
      the quota limiter