@InterfaceAudience.Private @InterfaceStability.Evolving class ThrottleSettings extends QuotaSettings
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.ThrottleRequest |
proto |
Constructor and Description |
---|
ThrottleSettings(String userName,
TableName tableName,
String namespace,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.ThrottleRequest proto) |
Modifier and Type | Method and Description |
---|---|
(package private) static ThrottleSettings |
fromTimedQuota(String userName,
TableName tableName,
String namespace,
ThrottleType type,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.TimedQuota timedQuota) |
QuotaType |
getQuotaType() |
long |
getSoftLimit() |
ThrottleType |
getThrottleType() |
TimeUnit |
getTimeUnit() |
protected void |
setupSetQuotaRequest(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
Called by toSetQuotaRequestProto() the subclass should implement this method to set the
specific SetQuotaRequest properties.
|
String |
toString() |
buildSetQuotaRequestProto, getNamespace, getTableName, getUserName, ownerToString, sizeToString, timeToString
private final org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.ThrottleRequest proto
public ThrottleType getThrottleType()
public long getSoftLimit()
public TimeUnit getTimeUnit()
public QuotaType getQuotaType()
getQuotaType
in class QuotaSettings
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
QuotaSettings
setupSetQuotaRequest
in class QuotaSettings
static ThrottleSettings fromTimedQuota(String userName, TableName tableName, String namespace, ThrottleType type, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.TimedQuota timedQuota)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.