@InterfaceAudience.Private @InterfaceStability.Evolving public class ThrottleSettings extends QuotaSettings
| Modifier and Type | Field and Description | 
|---|---|
| (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest | proto | 
| Constructor and Description | 
|---|
| ThrottleSettings(String userName,
                TableName tableName,
                String namespace,
                String regionServer,
                org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest proto) | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) static ThrottleSettings | fromTimedQuota(String userName,
              TableName tableName,
              String namespace,
              String regionServer,
              ThrottleType type,
              org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) | 
| (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest | getProto()Returns a copy of the internal state of  this | 
| QuotaScope | getQuotaScope() | 
| QuotaType | getQuotaType() | 
| long | getSoftLimit() | 
| ThrottleType | getThrottleType() | 
| TimeUnit | getTimeUnit() | 
| protected ThrottleSettings | merge(QuotaSettings other)Merges the provided settings with  thisand returns a new settings
 object to the caller if the merged settings differ from the original. | 
| 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. | 
| String | toString() | 
| private void | validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) | 
buildFromProto, buildSetQuotaRequestProto, getNamespace, getRegionServer, getTableName, getUserName, ownerToString, sizeToString, timeToString, validateQuotaTargetfinal org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest proto
ThrottleSettings(String userName, TableName tableName, String namespace, String regionServer, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest proto)
public ThrottleType getThrottleType()
public long getSoftLimit()
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest getProto()
thispublic TimeUnit getTimeUnit()
public QuotaScope getQuotaScope()
public QuotaType getQuotaType()
getQuotaType in class QuotaSettingsprotected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
QuotaSettingssetupSetQuotaRequest in class QuotaSettingsprotected ThrottleSettings merge(QuotaSettings other) throws IOException
QuotaSettingsthis and returns a new settings
 object to the caller if the merged settings differ from the original.merge in class QuotaSettingsother - The new settings to merge in.QuotaSettings object or null if the quota should be deleted.IOExceptionprivate void validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) throws IOException
IOExceptionstatic ThrottleSettings fromTimedQuota(String userName, TableName tableName, String namespace, String regionServer, ThrottleType type, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.