Package org.apache.hadoop.hbase.quotas
Class GlobalQuotaSettings
java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaSettings
org.apache.hadoop.hbase.quotas.GlobalQuotaSettings
- Direct Known Subclasses:
GlobalQuotaSettingsImpl
@LimitedPrivate("Coprocesssor")
@Evolving
public abstract class GlobalQuotaSettings
extends QuotaSettings
An object which captures all quotas types (throttle or space) for a subject (user, table, or
namespace). This is used inside of the HBase RegionServer to act as an analogy to the
ProtocolBuffer class
QuotaProtos.Quotas
.-
Constructor Summary
ModifierConstructorDescriptionprotected
GlobalQuotaSettings
(String userName, TableName tableName, String namespace, String regionServer) -
Method Summary
Modifier and TypeMethodDescriptionabstract List<QuotaSettings>
Computes a list of QuotaSettings that present the complete quota state of the combination of this user, table, and/or namespace.protected void
setupSetQuotaRequest
(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder) Called by toSetQuotaRequestProto() the subclass should implement this method to set the specific SetQuotaRequest properties.Methods inherited from class org.apache.hadoop.hbase.quotas.QuotaSettings
buildFromProto, buildSetQuotaRequestProto, getNamespace, getRegionServer, getTableName, getUserName, merge, ownerToString, sizeToString, timeToString, validateQuotaTarget
-
Constructor Details
-
GlobalQuotaSettings
protected GlobalQuotaSettings(String userName, TableName tableName, String namespace, String regionServer)
-
-
Method Details
-
getQuotaSettings
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. -
getQuotaType
- Specified by:
getQuotaType
in classQuotaSettings
-
setupSetQuotaRequest
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder) Description copied from class:QuotaSettings
Called by toSetQuotaRequestProto() the subclass should implement this method to set the specific SetQuotaRequest properties.- Specified by:
setupSetQuotaRequest
in classQuotaSettings
-