@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
this and 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, validateQuotaTarget
final 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()
this
public TimeUnit getTimeUnit()
public QuotaScope getQuotaScope()
public QuotaType getQuotaType()
getQuotaType
in class QuotaSettings
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
QuotaSettings
setupSetQuotaRequest
in class QuotaSettings
protected ThrottleSettings merge(QuotaSettings other) throws IOException
QuotaSettings
this
and returns a new settings
object to the caller if the merged settings differ from the original.merge
in class QuotaSettings
other
- The new settings to merge in.QuotaSettings
object or null if the quota should be deleted.IOException
private void validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) throws IOException
IOException
static ThrottleSettings fromTimedQuota(String userName, TableName tableName, String namespace, String regionServer, ThrottleType type, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.