@InterfaceAudience.Private @InterfaceStability.Evolving public class ThrottleSettings extends QuotaSettings
| Modifier and Type | Method and Description |
|---|---|
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() |
buildFromProto, buildSetQuotaRequestProto, getNamespace, getRegionServer, getTableName, getUserName, ownerToString, sizeToString, timeToStringpublic ThrottleType getThrottleType()
public long getSoftLimit()
public 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.other - The new settings to merge in.QuotaSettings object or null if the quota should be deleted.IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.